From: Carsten Dominik <dominik@science.uva.nl>
To: Baoqiu Cui <cbaoqiu@yahoo.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: ~verbatim~ and =code= inconsistency exporting to Latex/HTML
Date: Sat, 14 Mar 2009 08:37:15 +0100 [thread overview]
Message-ID: <A43F0C23-510D-437E-828D-0F5C79FC8794@uva.nl> (raw)
In-Reply-To: <byciqmcder6.fsf@muchbodyking-lm.corp.yahoo.com>
Yes, this is the right idea, I have implemented this, thanks.
- Carsten
On Mar 14, 2009, at 3:23 AM, Baoqiu Cui wrote:
> Carsten Dominik <dominik@science.uva.nl> writes:
>
>> On Mar 12, 2009, at 9:39 PM, Emilio Garcia Cota wrote:
>>
>>> #+TITLE: (bug|feature)? report -- exporting ~verbatim~ and =code=
>>> into Latex
>>> #+AUTHOR: me
>>> #+EMAIL: e@ma.il
>>> # I use latest Git (that's 1 commit ahead of 6.24c) on Emacs 22.3.1
>>>
>>> * ~verbatim~ and =code=---inconsistency exporting to Latex and HTML
>>>
>>> #+BEGIN_EXAMPLE
>>> [a-zA-Z_]
>>> [!#&*+-/:;<=>?]
>>> [\t\n\r ,]
>>> This works OK
>>> #+END_EXAMPLE
>>>
>>> However if I want to randomly inline any of those in a paragraph,
>>> =[!#&*+-/:;<=>?]= they're not properly escaped =[a-zA-Z_]= for Latex
>>> ---while for HTML =[\t\n\r ,]= org-mode does the Right Thing(tm).
>>
>> The reason for this is that in LaTeX, inline pieces use
>>
>> \verb=[a-zA-Z_]=
>
> Don't know if this is a good idea, but can we scan the text string and
> dynamically choose a delimiter that does not appear in the string? We
> need to have some delimiter candidates to choose from, and have to
> spend
> some extra CPU cycles to scan the string, which can be assumed short??
>
>> If "=" is part of the string, this construct fails. Whatever
>> character
>> I choose, it will fail for someone. I guess I could use the
>> paragraph symbol §, maybe this is the least likely one of them all?
>> it works in my LaTeX installation - could a few more people try this
>> on their systems?
>>
>> does
>>
>> \verb§bladibla§
>>
>> work in LaTeX?
>
> I got the following error on my MacBook:
>
> ------------------------------------------------------------------------
> ERROR: Package inputenc Error: Keyboard character used is undefined
>
> --- TeX said ---
> (inputenc) in inputencoding `utf8'.
>
> See the inputenc package documentation for explanation.
> Type H <return> for immediate help.
> ...
>
> l.43 \verb.§
> bladibla.§
> --- HELP ---
> From the .log file...
>
> You need to provide a definition with \DeclareInputText
> or \DeclareInputMath before using this key.
> ------------------------------------------------------------------------
>
> Baoqiu
>
>>
>>> I also find odd that ~verbatim~'ed text is =monospaced= in Latex
>>> while
>>> it is not in HTML.
>>
>> Yes, I know this, both constructs use \verb in LateX. I'd say this
>> is
>> clearly good enough, though.
>>
>> Is there a non-monospaced, verbatim equivalent for \verb in LaTeX?
>>
>>>
>>> * Another little thing---EMAIL option for Latex seems to have no
>>> effect
>>> The +EMAIL option below is not shown in Latex---whereas I can see
>>> it
>>> in
>>> the exported HTML. Is that a feature, a bug, or both?
>>
>> What should it influence? The standard LaTeX header we use
>> (maketitle)
>> does not list the email. You can build your own title, using
>> {{{email}}}
>> as a place holder.
>>
>> - Carsten
>>
>>
>>>
>>> * Thanks!
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>>
>> _______________________________________________
>> 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
>
>
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2009-03-14 7:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 20:39 ~verbatim~ and =code= inconsistency exporting to Latex/HTML Emilio Garcia Cota
2009-03-13 17:46 ` Carsten Dominik
2009-03-14 2:23 ` Baoqiu Cui
2009-03-14 7:37 ` Carsten Dominik [this message]
2009-03-14 19:23 ` Emilio Garcia Cota
2009-03-17 19:16 ` Carsten Dominik
2009-03-14 19:31 ` Emilio Garcia Cota
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A43F0C23-510D-437E-828D-0F5C79FC8794@uva.nl \
--to=dominik@science.uva.nl \
--cc=cbaoqiu@yahoo.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.