Re: [O] How to make the 4 level heading '****' to 'subsubsection' in latex export

2017-05-10 Thread XP Chen
Thanks, That's the key,

Also set "#+OPTIONS:  H:4" is  ok







在2017年05月11 00时15分, "Nicolas Goaziou"写道:

Hello,

"XP Chen"  writes:

> I add follow lines in .emacs:
>
> (add-to-list 'org-latex-classes
>  '("thesis1"
>"\\documentclass{thesis1}"
> ("\\chapter{%s}" . "\\chapter*{%s}")
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")))
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> However it no works. The .tex have no subsubsection. Instead, it convert 
> " XX" to "\item XX" in .tex file.
>
> Is the org export can only accept 3 section? How to resolve it?

See `org-export-headline-levels'.

Regards,

--
Nicolas Goaziou



[O] How to make the 4 level heading '****' to 'subsubsection' in latex export

2017-05-10 Thread XP Chen
I add follow lines in .emacs:

(add-to-list 'org-latex-classes
 '("thesis1"
   "\\documentclass{thesis1}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")))
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

However it no works. The .tex have no subsubsection. Instead, it convert " 
XX" to "\item XX" in .tex file.

Is the org export can only accept 3 section? How to resolve it?

Thanks.

 Chen.









Re: [O] How to generate subscript followed overstriking in org-mode

2017-05-02 Thread XP Chen
Haha, good idea but of my knowledge...

Thanks.







在2017年05月02 15时01分, "Eric S Fraga"写道:

On Tuesday,  2 May 2017 at 03:19, XP Chen wrote:
> So I choose using *bold*\mbox{}_{subscripted} , then in ODT file
> replace all the \mbox{} as blank...

You could probably write an export filter for ODT export which removes
the \mbox{} bits automatically...

--
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)


Re: [O] How to generate subscript followed overstriking in org-mode

2017-05-01 Thread XP Chen
 @@latex:\textbf{html:@@bold@@latex:}html:@@_{subscripted} works 
well for latex and pdf.

But cannot bold in ODT format... I think html exporter is the same as ODT 
format before, but a little different...

So I choose using *bold*\mbox{}_{subscripted} , then in ODT file replace all 
the \mbox{} as blank...







在2017年05月01 23时49分, "Eric S Fraga"写道:

On Monday,  1 May 2017 at 13:16, XP Chen wrote:
> Hi, everyone,
>
> How to generate subscript followed overstriking when export to latex or 
> pdf, I want use general org-mode method to generate html format also.
>
> Mix latex is ok as:  \textbf{d1}_{sub}
>
> But org method like:  " *d1*_{sub} "  or   " *d1* _{sub} " cannot achieve.

The following works for me:  This is *bold*\mbox{}_{subscripted}
although probably only for LaTeX export... possibly okay for your use
case but not a general solution.

You could put inline LaTeX and HTML codes:

This is @@latex:\textbf{html:@@bold@@latex:}html:@@_{subscripted}

but this is incredibly ugly and difficult to parse...  but it works.
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.5-444-g998576


[O] How to generate subscript followed overstriking in org-mode

2017-05-01 Thread XP Chen
Hi, everyone,

How to generate subscript followed overstriking when export to latex or 
pdf, I want use general org-mode method to generate html format also.

Mix latex is ok as:  \textbf{d1}_{sub} 

But org method like:  " *d1*_{sub} "  or   " *d1* _{sub} " cannot achieve.  
  

According to 
https://emacs.stackexchange.com/questions/31149/superscript-or-subscript-inside-italics-in-org-buffer-does-not-change-text-app
 ,  " *d1*._{sub} "  or " *d1* ._{sub} " can also done except a point in the 
char...

   So anyone have idea?

Thanks.

 








[O] “#+ATTR_LATEX: :environment minipage :option [b]{0.6\textwidth} ” no working when translate the following latex fragments

2017-04-19 Thread XP Chen
How to generate the following latex fragment through org-mode "#+ATTR_LATEX:" 
or others:

\begin{figure}[!htbp]
  \centering
  \begin{minipage}[b]{0.6\textwidth}
\captionstyle{\centering}
\centering
\includegraphics[width=4cm]{fig/test1.png}
\bicaption[fig1]{Where}{Fig}{there is a way.}
  \end{minipage} 
\end{figure}

I have done partially of it by using:

#+ATTR_LATEX::caption \bicaption[fig1]{Where}{Fig}{there is a way.}:width 10cm
[[file:fig/test1.png]]

However the following no work:

#+ATTR_LATEX::environment minipage :option [b]{0.6\textwidth}:caption 
\bicaption[fig1]{Where}{Fig}{there is a way.}:width 10cm
[[file:fig/test1.png]]

I donnot know how to after? The ":environment" and ":option" seems not to work 
after the try, no "\begin{minipage}[b]{0.6\textwidth}" showed in the out .tex 
file

I want to generate ODT file meanwhile, so I left the picture as the link format.

Thanks very much.










[O] “#+ATTR_LATEX: :environment minipage :option [b]{0.6\textwidth} ” no working when translate the following latex fragments

2017-04-19 Thread XP Chen
How to generate the following latex fragment through org-mode "#+ATTR_LATEX:" 
or others:

\begin{figure}[!htbp]
  \centering
  \begin{minipage}[b]{0.6\textwidth}
\captionstyle{\centering}
\centering
\includegraphics[width=4cm]{fig/test1.png}
\bicaption[fig1]{Where}{Fig}{there is a way.}
  \end{minipage} \end{figure}

I have done partially of it by using:

#+ATTR_LATEX::caption \bicaption[fig1]{Where}{Fig}{there is a way.}:width 
10cm[[file:fig/test1.png]]

However the following no work:

#+ATTR_LATEX::environment minipage :option [b]{0.6\textwidth}:caption 
\bicaption[fig1]{Where}{Fig}{there is a way.}:width 10cm[[file:fig/test1.png]]

I donnot know how to after? The ":environment" and ":option" seems not to work 
after the try, no "\begin{minipage}[b]{0.6\textwidth}" showed in the out .tex 
file

I want to generate ODT file meanwhile, so I left the picture as the link format.

Thanks very much.