Re: [Orgmode] ~verbatim~ and =code= inconsistency exporting to Latex/HTML

2009-03-17 Thread Carsten Dominik


On Mar 14, 2009, at 8:23 PM, Emilio Garcia Cota wrote:


Carsten Dominik wrote:

The reason for this is that in LaTeX, inline pieces use

\verb=[a-zA-Z_]=

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?


It works, but it would just move the problem somewhere else instead of
solving it.

More flexible solutions (yet more involved) could be:
- Escape the characters ourselves (i.e. do not use \verb)
- have a stack of suitable delimiter characters (i.e. any character  
except

 letters, * or space) and use the first one that's not in the region.


This is how it works now.



A simpler solution would be to stick to '=' and '~' as delimiters,
documenting this shortcoming when exporting to LaTeX.

Yes, I know this, both constructs use \verb in LateX.  I'd say this  
is

clearly good enough, though.


Agreed.


Is there a non-monospaced, verbatim equivalent for \verb in LaTeX?


AFAIK there isn't.

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.


I was expecting it to generate something like this:
\author{my Name $$\href{mailto:e...@ma.il}{e@ma.il}$$
Anyway yes, I could do it myself.



By the way, using \verb inside other commands (such as \section) is
forbidden in LaTeX; shall we include a warning in the manual, silently
ignore ~~ and == in those places, or maybe just leave as it is (It'll
break when compiling the.tex) ?


I think we can just have it break when compiling TeX.  We cannot
possibly document TeX in the Org manual.

- Carsten




___
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


Re: [Orgmode] ~verbatim~ and =code= inconsistency exporting to Latex/HTML

2009-03-14 Thread Emilio Garcia Cota
hmm I've just seen that I missed Baoqiu Cui's e-mail, because I'm not
suscribed to the list and forgot to CC myself in the first place.

Sorry for the noise,
Emilio.


___
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


[Orgmode] ~verbatim~ and =code= inconsistency exporting to Latex/HTML

2009-03-13 Thread Emilio Garcia Cota
#+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).

  I also find odd that ~verbatim~'ed text is =monospaced= in Latex while
  it is not in HTML.

* 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?

* 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