emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Customizing HTML Export
@ 2008-05-12 20:07 Peter Jones
  2008-05-13 14:40 ` Joel J. Adamson
  2008-05-14  4:22 ` Carsten Dominik
  0 siblings, 2 replies; 11+ messages in thread
From: Peter Jones @ 2008-05-12 20:07 UTC (permalink / raw)
  To: org-mode

I'm trying to come up with the best way to insert author and date
information after the title h1 in an HTML export of a single org file.

This may seem silly, but I have a CSS file that turns the title h1 and
author info into a title page for printing.  I'm doing this as opposed
to using latex.

I could use the HTML preamble to insert the title h1 and author info
myself, but I'm not sure how to make the preamble dynamic enough to
capture the title of the page being exported since it can only be a
string.

Any suggestions?

-- 
Peter Jones, pmade inc.
http://pmade.com

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

* Re: Customizing HTML Export
  2008-05-12 20:07 Customizing HTML Export Peter Jones
@ 2008-05-13 14:40 ` Joel J. Adamson
  2008-05-13 22:42   ` Peter Jones
  2008-05-14  4:22 ` Carsten Dominik
  1 sibling, 1 reply; 11+ messages in thread
From: Joel J. Adamson @ 2008-05-13 14:40 UTC (permalink / raw)
  To: org-mode

Peter Jones <mlists@pmade.com> writes:

> I'm trying to come up with the best way to insert author and date
> information after the title h1 in an HTML export of a single org file.
>
> This may seem silly, but I have a CSS file that turns the title h1 and
> author info into a title page for printing.  I'm doing this as opposed
> to using latex.

Are you publishing on the web, or on paper?  What do you have against
using LaTeX?  Do you have much experience with it?  As weird as the
markup looks, it is really worth it to me.

I want you to know that LaTeX is worth it, in case you have yet to give
it a fair shot.

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj

Ineffective security measure:

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.

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

* Re: Customizing HTML Export
  2008-05-13 14:40 ` Joel J. Adamson
@ 2008-05-13 22:42   ` Peter Jones
  2008-05-14  7:57     ` Karsten Heymann
  2008-05-14 14:52     ` Joel J. Adamson
  0 siblings, 2 replies; 11+ messages in thread
From: Peter Jones @ 2008-05-13 22:42 UTC (permalink / raw)
  To: emacs-orgmode

jadamson@partners.org (Joel J. Adamson) writes:
> I want you to know that LaTeX is worth it, in case you have yet to give
> it a fair shot.

I haven't given LaTex a fair shot yet, but it is the next technology
on my list of "things to learn".

What I'm doing right now is using the HTML export from org-mode as a
way to generate requirements outlines for my clients.  I then use a
CSS file that I've written that makes the HTML look very nice so that
I can export it to PDF.

I realize that LaTex is a better way to go to PDF, but I do have some
concerns:

 1. A lot of software and configuration needs to be in-place to use
    LaTex
 2. The default fonts used when converting LaTex to PDF are ugly, to
    say the least
 3. HTML and CSS is much more accessible to me right now


Joel, want to point me in the right direction for learning LaTex and
producing nice looking PDF documents?

-- 
Peter Jones, pmade inc.
http://pmade.com

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

* Re: Customizing HTML Export
  2008-05-12 20:07 Customizing HTML Export Peter Jones
  2008-05-13 14:40 ` Joel J. Adamson
@ 2008-05-14  4:22 ` Carsten Dominik
  1 sibling, 0 replies; 11+ messages in thread
From: Carsten Dominik @ 2008-05-14  4:22 UTC (permalink / raw)
  To: Peter Jones; +Cc: org-mode

Hi Peter,

try this:

#+OPTIONS: skip:nil

#+TITLE: this is the title

#+BEGIN_HTML:
<meta name="author" content="Carsten Dominik"/>
#+END_HTML


* section 1


HTH, Carsten

On May 12, 2008, at 10:07 PM, Peter Jones wrote:

> I'm trying to come up with the best way to insert author and date
> information after the title h1 in an HTML export of a single org file.
>
> This may seem silly, but I have a CSS file that turns the title h1 and
> author info into a title page for printing.  I'm doing this as opposed
> to using latex.
>
> I could use the HTML preamble to insert the title h1 and author info
> myself, but I'm not sure how to make the preamble dynamic enough to
> capture the title of the page being exported since it can only be a
> string.
>
> Any suggestions?
>
> -- 
> Peter Jones, pmade inc.
> http://pmade.com
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Re: Customizing HTML Export
  2008-05-13 22:42   ` Peter Jones
@ 2008-05-14  7:57     ` Karsten Heymann
  2008-05-14 14:52     ` Joel J. Adamson
  1 sibling, 0 replies; 11+ messages in thread
From: Karsten Heymann @ 2008-05-14  7:57 UTC (permalink / raw)
  To: emacs-orgmode

Hello Peter,

Peter Jones <mlists@pmade.com> writes:
> I realize that LaTex is a better way to go to PDF, but I do have some
> concerns:

>  2. The default fonts used when converting LaTex to PDF are ugly, to
>     say the least

Just a note: If you put \usepackage{lmodern} before the
\begin{document} line of every LaTeX document you write, you'll never
have to worry about ugly fonts in PDF again (there are many other
solutions to this problem, but this is the easiest).

Yours
Karsten

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

* Re: Re: Customizing HTML Export
  2008-05-13 22:42   ` Peter Jones
  2008-05-14  7:57     ` Karsten Heymann
@ 2008-05-14 14:52     ` Joel J. Adamson
  2008-05-14 15:12       ` Carsten Dominik
                         ` (2 more replies)
  1 sibling, 3 replies; 11+ messages in thread
From: Joel J. Adamson @ 2008-05-14 14:52 UTC (permalink / raw)
  To: emacs-orgmode

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

Peter Jones <mlists@pmade.com> writes:

> jadamson@partners.org (Joel J. Adamson) writes:
>> I want you to know that LaTeX is worth it, in case you have yet to give
>> it a fair shot.
>
> I haven't given LaTex a fair shot yet, but it is the next technology
> on my list of "things to learn".

I love it!  Check this out

\documentclass{article}
\usepackage[garamond]{mathdesign}
\title{A Greeting}
\author{Peter Jones, FRS}
\begin{document}
\maketitle

Hello!  How about a nice equation?

\begin{equation}
  \label{eq:1}
  \nu = \int_a^bt\times sin(x) dx
\end{equation}

\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 

> What I'm doing right now is using the HTML export from org-mode as a
> way to generate requirements outlines for my clients.  I then use a
> CSS file that I've written that makes the HTML look very nice so that
> I can export it to PDF.
>
> I realize that LaTex is a better way to go to PDF, but I do have some
> concerns:
>
>  1. A lot of software and configuration needs to be in-place to use
>     LaTex

What system are you using?  TeX systems are pretty easy to install, and
highly automated.  If you are using Windows, MikTeX does all the dirty
work for you, including a synaptic-esque package manager.  For Mac or
Linux there's TeXLive, which I haven't used, but my experience is that
it's all pretty easy to install (although it can take forever to
download, often >700 MB).  For Debian-based systems, all you have to do
is find the TeX system in your package manager of choice.  I use
Slackware, and teTeX came with the system (although i've urged the
maintainers to start using TeXLive).

>  2. The default fonts used when converting LaTex to PDF are ugly, to
>  say the least 3. HTML and CSS is much more accessible to me right now

Yes, I'm aware of that, but that depends on the fonts on your system and
a few other variables.  With MikTeX and other systems, installing new
fonts is pretty easy, but it does take some learning to get all the ins
and outs.  I use Garamond for most of my documents, and it prints beautifully.

> Joel, want to point me in the right direction for learning LaTex and
> producing nice looking PDF documents?

The best thing to do is visit www.tug.org, get the "Not So Short
Introduction to LaTeX" and read about it for a while.  There are tons of
tutorials on the internet, and you'll find a lot of them at tug.org.
Most TeX systems come with pdflatex, which directly produces pdf, with
limitations (pdflatex can't use eps graphics, my preferred format, but
must use png or gif --- someone please correct me if I'm wrong).  But
for that you can just generate the dvi and then use dvipdf to get a
pdf.  Again when I use my own fonts
("\usepackage[garamond]{mathdesign}") then I get nice results with
printing and pdf.  I used dvipng to produce this attachment.

Joel

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.



[-- Attachment #2: scratch1.png --]
[-- Type: image/png, Size: 6146 bytes --]

[-- Attachment #3: Type: text/plain, Size: 765 bytes --]


-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj

Ineffective security measure:

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.



[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Re: Customizing HTML Export
  2008-05-14 14:52     ` Joel J. Adamson
@ 2008-05-14 15:12       ` Carsten Dominik
  2008-05-14 17:36         ` Joel J. Adamson
  2008-05-15 21:50       ` Dennis J Lin
  2008-05-16  1:09       ` Peter Jones
  2 siblings, 1 reply; 11+ messages in thread
From: Carsten Dominik @ 2008-05-14 15:12 UTC (permalink / raw)
  To: Joel J. Adamson; +Cc: emacs-orgmode


On May 14, 2008, at 4:52 PM, Joel J. Adamson wrote:

> Peter Jones <mlists@pmade.com> writes:
>
>> jadamson@partners.org (Joel J. Adamson) writes:
>>> I want you to know that LaTeX is worth it, in case you have yet to  
>>> give
>>> it a fair shot.
>>
>> I haven't given LaTex a fair shot yet, but it is the next technology
>> on my list of "things to learn".
>
> I love it!  Check this out
>
> \documentclass{article}
> \usepackage[garamond]{mathdesign}
> \title{A Greeting}
> \author{Peter Jones, FRS}
> \begin{document}
> \maketitle
>
> Hello!  How about a nice equation?
>
> \begin{equation}
>  \label{eq:1}
>  \nu = \int_a^bt\times sin(x) dx
> \end{equation}


Ouch, please do not forget to write \sin instead of sin, or you are  
writing the product of s, i, and n..... :-)

- Carsten

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

* Re: Re: Customizing HTML Export
  2008-05-14 15:12       ` Carsten Dominik
@ 2008-05-14 17:36         ` Joel J. Adamson
  0 siblings, 0 replies; 11+ messages in thread
From: Joel J. Adamson @ 2008-05-14 17:36 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:

> On May 14, 2008, at 4:52 PM, Joel J. Adamson wrote:
>
>> Peter Jones <mlists@pmade.com> writes:
>>
>>> jadamson@partners.org (Joel J. Adamson) writes:
>>>> I want you to know that LaTeX is worth it, in case you have yet to
>>>> give
>>>> it a fair shot.
>>>
>>> I haven't given LaTex a fair shot yet, but it is the next technology
>>> on my list of "things to learn".
>>
>> I love it!  Check this out
>>
>> \documentclass{article}
>> \usepackage[garamond]{mathdesign}
>> \title{A Greeting}
>> \author{Peter Jones, FRS}
>> \begin{document}
>> \maketitle
>>
>> Hello!  How about a nice equation?
>>
>> \begin{equation}
>>  \label{eq:1}
>>  \nu = \int_a^bt\times sin(x) dx
>> \end{equation}
>
>
> Ouch, please do not forget to write \sin instead of sin, or you are
> writing the product of s, i, and n..... :-)

Oops, unfortunately in my current position I don't write out a lot of
equations, so I'm rusty ;)  That will change very soon, though.

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj

Ineffective security measure:

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.

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

* Re: Customizing HTML Export
  2008-05-14 14:52     ` Joel J. Adamson
  2008-05-14 15:12       ` Carsten Dominik
@ 2008-05-15 21:50       ` Dennis J Lin
  2008-05-16 14:43         ` Joel J. Adamson
  2008-05-16  1:09       ` Peter Jones
  2 siblings, 1 reply; 11+ messages in thread
From: Dennis J Lin @ 2008-05-15 21:50 UTC (permalink / raw)
  To: emacs-orgmode

Salutations!

jadamson@partners.org (Joel J. Adamson) writes:

> Most TeX systems come with pdflatex, which directly produces pdf, with
> limitations (pdflatex can't use eps graphics, my preferred format, but
> must use png or gif --- someone please correct me if I'm wrong).  But

What I tend to do is convert the eps to a pdf.  There is a epstopdf
command (which I think comes with xpdf.)

Dennis Lin

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

* Re: Customizing HTML Export
  2008-05-14 14:52     ` Joel J. Adamson
  2008-05-14 15:12       ` Carsten Dominik
  2008-05-15 21:50       ` Dennis J Lin
@ 2008-05-16  1:09       ` Peter Jones
  2 siblings, 0 replies; 11+ messages in thread
From: Peter Jones @ 2008-05-16  1:09 UTC (permalink / raw)
  To: emacs-orgmode

jadamson@partners.org (Joel J. Adamson) writes:
> The best thing to do is visit www.tug.org, get the "Not So Short
> Introduction to LaTeX" and read about it for a while.  There are tons of
> tutorials on the internet, and you'll find a lot of them at tug.org.
> Most TeX systems come with pdflatex, which directly produces pdf, with
> limitations (pdflatex can't use eps graphics, my preferred format, but
> must use png or gif --- someone please correct me if I'm wrong).  But
> for that you can just generate the dvi and then use dvipdf to get a
> pdf.  Again when I use my own fonts
> ("\usepackage[garamond]{mathdesign}") then I get nice results with
> printing and pdf.  I used dvipng to produce this attachment.

Joel, thanks for the thorough response.  I'll definitely read the
tutorials at tug.org and make this happen, it's been a long time
coming.

Next time you come back home to Boulder for a vacation, I'll take you
out for a beer.

Thanks again.

-- 
Peter Jones, pmade inc.
http://pmade.com

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

* Re: Re: Customizing HTML Export
  2008-05-15 21:50       ` Dennis J Lin
@ 2008-05-16 14:43         ` Joel J. Adamson
  0 siblings, 0 replies; 11+ messages in thread
From: Joel J. Adamson @ 2008-05-16 14:43 UTC (permalink / raw)
  To: Dennis J Lin; +Cc: emacs-orgmode

Dennis J Lin <djlin@uiuc.edu> writes:

> Salutations!
>
> jadamson@partners.org (Joel J. Adamson) writes:
>
>> Most TeX systems come with pdflatex, which directly produces pdf, with
>> limitations (pdflatex can't use eps graphics, my preferred format, but
>> must use png or gif --- someone please correct me if I'm wrong).  But
>
> What I tend to do is convert the eps to a pdf.  There is a epstopdf
> command (which I think comes with xpdf.)

Yeah, there are plenty of conversion utilities: for some reason when I
send people eps and they are using Macintosh, it won't just display it
as Postscript...I find that ironic given Apple's history with Postscript.

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj

Ineffective security measure:

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.

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

end of thread, other threads:[~2008-05-16 14:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-12 20:07 Customizing HTML Export Peter Jones
2008-05-13 14:40 ` Joel J. Adamson
2008-05-13 22:42   ` Peter Jones
2008-05-14  7:57     ` Karsten Heymann
2008-05-14 14:52     ` Joel J. Adamson
2008-05-14 15:12       ` Carsten Dominik
2008-05-14 17:36         ` Joel J. Adamson
2008-05-15 21:50       ` Dennis J Lin
2008-05-16 14:43         ` Joel J. Adamson
2008-05-16  1:09       ` Peter Jones
2008-05-14  4:22 ` Carsten Dominik

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).