* Not LaTeX now, trying to use org-mode
@ 2014-12-03 18:53 Sharon Kimble
2014-12-03 19:48 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: Sharon Kimble @ 2014-12-03 18:53 UTC (permalink / raw)
To: org-mode
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
I'm now starting to write a org-mode document in place of doing it
in LaTeX, but its left me puzzled by some things, like -
a) How do you make a paragraph, or even a sentence, italic? I've
tried following the "org-mode manual" but that just shows it for
single words.
b) I am used to using "\gls{foo}" for having a glossary entry in the
text, and referring to
\newglossaryentry{foo}{name=foo,description=blah de blah}. But how
do I do it in org-mode please?
c) How do I show an item as being selected to show in the index? In
LaTeX its done using \index{foo}
d) Are there any tutorials, or good teaching web sites please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.4.1.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Not LaTeX now, trying to use org-mode
2014-12-03 18:53 Not LaTeX now, trying to use org-mode Sharon Kimble
@ 2014-12-03 19:48 ` Nick Dokos
2014-12-03 21:01 ` Thomas S. Dye
0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2014-12-03 19:48 UTC (permalink / raw)
To: emacs-orgmode
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> I'm now starting to write a org-mode document in place of doing it
> in LaTeX, but its left me puzzled by some things, like -
>
> a) How do you make a paragraph, or even a sentence, italic? I've
> tried following the "org-mode manual" but that just shows it for
> single words.
>
See below.
> b) I am used to using "\gls{foo}" for having a glossary entry in the
> text, and referring to
> \newglossaryentry{foo}{name=foo,description=blah de blah}. But how
> do I do it in org-mode please?
>
Don't know. I don't think there is any glossary support in org, but
I could be wrong.
> c) How do I show an item as being selected to show in the index? In
> LaTeX its done using \index{foo}
>
--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \usepackage{makeidx}
#+LATEX_HEADER: \makeindex
* foo
This
#+INDEX: item
item is going to end up in the index.
This /will be an italic sentence/.
Unfortunately, /italic paragraphs don't
quite work because too many newlines will stop the match/.
#+LATEX: \printindex
--8<---------------cut here---------------end--------------->8---
The #+INDEX: item gets translated to \index{item}, but you stil have to
do the rest of the index setup by hand as shown above (I hope it works:
I didn't try it). BTW, there is an easy template for inserting #+INDEX
lines: <i TAB. Check the org manual under "Easy templates" if you don't
know about them.
The italic paragraph spread over two lines will work, but if you spread
it over three lines, it won't. You can tweak this (and other emphasis
settings) by changing org-emphasis-regexp-components, but that's a
somewhat hazardous and error-prone process - search the list for more.
> d) Are there any tutorials, or good teaching web sites please?
>
Tom Dye's tutorial
http://orgmode.org/worg/org-tutorials/org-latex-export.html
is still worth reading, but note that it is for the pre-8.0 exporter
so you have to take it with the appropriate grain of salt.
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Not LaTeX now, trying to use org-mode
2014-12-03 19:48 ` Nick Dokos
@ 2014-12-03 21:01 ` Thomas S. Dye
0 siblings, 0 replies; 3+ messages in thread
From: Thomas S. Dye @ 2014-12-03 21:01 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
Nick Dokos <ndokos@gmail.com> writes:
> The italic paragraph spread over two lines will work, but if you spread
> it over three lines, it won't. You can tweak this (and other emphasis
> settings) by changing org-emphasis-regexp-components, but that's a
> somewhat hazardous and error-prone process - search the list for more.
Another approach might define a LaTeX environment for this, then use
blocks in Org mode.
The following four line paragraph gets set in italics.
,------------------------------------------------------------------------
| #+LATEX_CLASS: article
| #+LATEX_HEADER: \newenvironment{myitalics}{\itshape}{\par}
|
| * Italic blocks
| #+BEGIN_myitalics
| The italic paragraph spread over two lines will work, but if you spread
| it over three lines, it won't. You can tweak this (and other emphasis
| settings) by changing org-emphasis-regexp-components, but that's a
| somewhat hazardous and error-prone process - search the list for more.
| #+END_myitalics
`------------------------------------------------------------------------
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-03 21:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-03 18:53 Not LaTeX now, trying to use org-mode Sharon Kimble
2014-12-03 19:48 ` Nick Dokos
2014-12-03 21:01 ` Thomas S. Dye
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.