emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export. Substitute some headlines with arbitrary command
@ 2013-03-13 20:50 Andrey Yankin
  2013-03-13 22:49 ` Charles Berry
  2013-03-14  0:14 ` Nick Dokos
  0 siblings, 2 replies; 6+ messages in thread
From: Andrey Yankin @ 2013-03-13 20:50 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

Hi!

I want arbitrary top level headline to be exported not as \section (or
whatever it is) but with some other arbitrary latex command.

I even do not want to use headline text. Just write \intro instead of
\section{...} in tex file.

I've tried some fiddling with :noexport: and :export: tags to hide output
for selected headlines. It didn't work.

Currently I'm heading to this metod: http://stackoverflow.com/a/9679105 of
creating my own parser.

Are there any easier solutions?

[-- Attachment #2: Type: text/html, Size: 625 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LaTeX export. Substitute some headlines with arbitrary command
  2013-03-13 20:50 LaTeX export. Substitute some headlines with arbitrary command Andrey Yankin
@ 2013-03-13 22:49 ` Charles Berry
  2013-03-14  0:14 ` Nick Dokos
  1 sibling, 0 replies; 6+ messages in thread
From: Charles Berry @ 2013-03-13 22:49 UTC (permalink / raw)
  To: emacs-orgmode

Andrey Yankin <yankin013 <at> gmail.com> writes:

> 
> Hi!I want arbitrary top level headline to be exported not as \section 
> (or whatever it is) but with some other arbitrary latex command.

[snip]

The filter mechanism might be a good choice. 

Here is an example of modifying a headline:

  http://thread.gmane.org/gmane.emacs.orgmode/67667/focus=67706

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LaTeX export. Substitute some headlines with arbitrary command
  2013-03-13 20:50 LaTeX export. Substitute some headlines with arbitrary command Andrey Yankin
  2013-03-13 22:49 ` Charles Berry
@ 2013-03-14  0:14 ` Nick Dokos
  2013-03-14  5:14   ` Andrey Yankin
  1 sibling, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2013-03-14  0:14 UTC (permalink / raw)
  To: Andrey Yankin; +Cc: emacs-orgmode

Andrey Yankin <yankin013@gmail.com> wrote:

> Hi!
> 
> I want arbitrary top level headline to be exported not as \section (or whatever it is) but with some
> other arbitrary latex command.
> 
> I even do not want to use headline text. Just write \intro instead of \section{...} in tex file.
> 
> I've tried some fiddling with :noexport: and :export: tags to hide output for selected headlines. It
> didn't work.
> 
> Currently I'm heading to this metod: http://stackoverflow.com/a/9679105 of creating my own parser.
> 
> Are there any easier solutions?
> 

Have you tried customizing the org-latex-classes variable? I'm not quite
sure what you are trying to do (an example would help), but I don't see
any obstacles.

Nick

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LaTeX export. Substitute some headlines with arbitrary command
  2013-03-14  0:14 ` Nick Dokos
@ 2013-03-14  5:14   ` Andrey Yankin
  2013-03-14  6:17     ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Yankin @ 2013-03-14  5:14 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]

Sorry if it wasn't clear.
I should have illustrate this.

Input:

* Headline 1
** Node 1.1
  Content 1
* Headline 2
  Content 2
* Headline 3
  Content 3
* Headline 4
  Content 4
* Headline 5
  Content 5

Desired output:

\intro
\subsection{Node 1.1}
  Content 1
\section{Headline 2}
  Content 2
\section{Headline 3}
  Content 3
\section{Headline 4}
  Content 4
\conclusion
  Content 5

First and fifth top headlines output is replaced. And others are defaults.
All children keep the same.



2013/3/14 Nick Dokos <nicholas.dokos@hp.com>

> Andrey Yankin <yankin013@gmail.com> wrote:
>
> > Hi!
> >
> > I want arbitrary top level headline to be exported not as \section (or
> whatever it is) but with some
> > other arbitrary latex command.
> >
> > I even do not want to use headline text. Just write \intro instead of
> \section{...} in tex file.
> >
> > I've tried some fiddling with :noexport: and :export: tags to hide
> output for selected headlines. It
> > didn't work.
> >
> > Currently I'm heading to this metod: http://stackoverflow.com/a/9679105of creating my own parser.
> >
> > Are there any easier solutions?
> >
>
> Have you tried customizing the org-latex-classes variable? I'm not quite
> sure what you are trying to do (an example would help), but I don't see
> any obstacles.
>
> Nick
>

[-- Attachment #2: Type: text/html, Size: 2058 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LaTeX export. Substitute some headlines with arbitrary command
  2013-03-14  5:14   ` Andrey Yankin
@ 2013-03-14  6:17     ` Nick Dokos
  2013-03-14  8:07       ` Andrey Yankin
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2013-03-14  6:17 UTC (permalink / raw)
  To: Andrey Yankin; +Cc: emacs-orgmode

Andrey Yankin <yankin013@gmail.com> wrote:

> Sorry if it wasn't clear.
> I should have illustrate this.
> 
> Input:
> 
> * Headline 1
> ** Node 1.1
>   Content 1
> * Headline 2
>   Content 2
> * Headline 3
>   Content 3
> * Headline 4
>   Content 4
> * Headline 5
>   Content 5
> 
> Desired output:
> 
> \intro
> \subsection{Node 1.1}
>   Content 1
> \section{Headline 2}
>   Content 2
> \section{Headline 3}
>   Content 3
> \section{Headline 4}
>   Content 4
> \conclusion
>   Content 5
> 
> First and fifth top headlines output is replaced. And others are defaults.
> All children keep the same.
> 

OK - I don't think you can do this with org-latex-classes: there is no
provision for exceptional cases there. Charles Berry suggested filters:
maybe something can be done with that.

FWIW, I would just wait until the last minute and then when it's time to
produce the final pdf, I'd replace the two headlines by hand - but that
assumes that the document is a one-off, do-it-once-and-never-again kind
of thing.

Nick

> 2013/3/14 Nick Dokos <nicholas.dokos@hp.com>
> 
>     Andrey Yankin <yankin013@gmail.com> wrote:
>    
>     > Hi!
>     >
>     > I want arbitrary top level headline to be exported not as \section (or whatever it is) but
>     with some
>     > other arbitrary latex command.
>     >
>     > I even do not want to use headline text. Just write \intro instead of \section{...} in tex
>     file.
>     >
>     > I've tried some fiddling with :noexport: and :export: tags to hide output for selected
>     headlines. It
>     > didn't work.
>     >
>     > Currently I'm heading to this metod: http://stackoverflow.com/a/9679105 of creating my own
>     parser.
>     >
>     > Are there any easier solutions?
>     >
>    
>     Have you tried customizing the org-latex-classes variable? I'm not quite
>     sure what you are trying to do (an example would help), but I don't see
>     any obstacles.
>    
>     Nick
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: LaTeX export. Substitute some headlines with arbitrary command
  2013-03-14  6:17     ` Nick Dokos
@ 2013-03-14  8:07       ` Andrey Yankin
  0 siblings, 0 replies; 6+ messages in thread
From: Andrey Yankin @ 2013-03-14  8:07 UTC (permalink / raw)
  To: nicholas.dokos, ccberry; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2496 bytes --]

Charles, Nick, thanks for the tip of using filters.

As far as I can see it requires version 8 of org-mode to be installed. Am I
right?
I am using now 7.8.11.

I'll try to install a new version and check out filters.





2013/3/14 Nick Dokos <nicholas.dokos@hp.com>

> Andrey Yankin <yankin013@gmail.com> wrote:
>
> > Sorry if it wasn't clear.
> > I should have illustrate this.
> >
> > Input:
> >
> > * Headline 1
> > ** Node 1.1
> >   Content 1
> > * Headline 2
> >   Content 2
> > * Headline 3
> >   Content 3
> > * Headline 4
> >   Content 4
> > * Headline 5
> >   Content 5
> >
> > Desired output:
> >
> > \intro
> > \subsection{Node 1.1}
> >   Content 1
> > \section{Headline 2}
> >   Content 2
> > \section{Headline 3}
> >   Content 3
> > \section{Headline 4}
> >   Content 4
> > \conclusion
> >   Content 5
> >
> > First and fifth top headlines output is replaced. And others are
> defaults.
> > All children keep the same.
> >
>
> OK - I don't think you can do this with org-latex-classes: there is no
> provision for exceptional cases there. Charles Berry suggested filters:
> maybe something can be done with that.
>
> FWIW, I would just wait until the last minute and then when it's time to
> produce the final pdf, I'd replace the two headlines by hand - but that
> assumes that the document is a one-off, do-it-once-and-never-again kind
> of thing.
>
> Nick
>
> > 2013/3/14 Nick Dokos <nicholas.dokos@hp.com>
> >
> >     Andrey Yankin <yankin013@gmail.com> wrote:
> >
> >     > Hi!
> >     >
> >     > I want arbitrary top level headline to be exported not as \section
> (or whatever it is) but
> >     with some
> >     > other arbitrary latex command.
> >     >
> >     > I even do not want to use headline text. Just write \intro instead
> of \section{...} in tex
> >     file.
> >     >
> >     > I've tried some fiddling with :noexport: and :export: tags to hide
> output for selected
> >     headlines. It
> >     > didn't work.
> >     >
> >     > Currently I'm heading to this metod:
> http://stackoverflow.com/a/9679105 of creating my own
> >     parser.
> >     >
> >     > Are there any easier solutions?
> >     >
> >
> >     Have you tried customizing the org-latex-classes variable? I'm not
> quite
> >     sure what you are trying to do (an example would help), but I don't
> see
> >     any obstacles.
> >
> >     Nick
> >
> >
> > ----------------------------------------------------
> > Alternatives:
> >
> > ----------------------------------------------------
>

[-- Attachment #2: Type: text/html, Size: 3626 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-14  8:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 20:50 LaTeX export. Substitute some headlines with arbitrary command Andrey Yankin
2013-03-13 22:49 ` Charles Berry
2013-03-14  0:14 ` Nick Dokos
2013-03-14  5:14   ` Andrey Yankin
2013-03-14  6:17     ` Nick Dokos
2013-03-14  8:07       ` Andrey Yankin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).