emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* vertically misplaced thousands separator
@ 2016-06-13 12:31 Charles Millar
  2016-06-13 12:46 ` Charles Millar
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Millar @ 2016-06-13 12:31 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1385 bytes --]

I am not sure if this is a bug in orgmode latex exporter or whether it 
is specific to LaTeX and that there is some code that will take care of 
this.

First, attached is a copy of my LaTeX setup.

I recently added \\usepackage[npthousnadsep{,}]{numprint} to my setup.

When I export the following in line code

This is inline src_emacs-lisp[:var totalcommissions=TOTALCOM[-1,-1] 
fmt="%.2f"]{(format fmt totalcommissions)} {{{results(=99999.99=)}}} for 
some reason

the thousands separator is place above the exported line, thus

     ,
This is inline 99999.99 for some reason

Likewise, a source block, e.g.

** Block

This is a block

#+begin_src emacs-lisp :var totalcommissions=TOTALCOM[-1,-1] fmt="%.2f" 
:exports results
(format fmt totalcommissions)
#+end_src

#+RESULTS:
: 99999.99

for the same code

exports as

   ,
This is a block
99999.99

|{group-separator ={,}|

for the same code

Of course I expected 99,999.99 in both cases.

I also tried this with \\usepackage{siunitx} and 
\\usepackage[group-separator={,}]{siunitx} (numprint separator was 
removed) and had the same results

Org-mode version 8.3.4 (release 8.3.4 -907-g65e437 @ 
usr/local/share/emacs/site-lisp/org-mode/lisp)

GNU Emacs 24.4.1 (x86 64 -pc-linux-gnu, GTK+ Version 3.14.5) of 
2015-03-07 on trouble, modified
by Debian

Charlie Millar


[-- Attachment #1.2: Type: text/html, Size: 2231 bytes --]

[-- Attachment #2: mysetup.org --]
[-- Type: text/plain, Size: 1028 bytes --]

(add-to-list 'org-latex-classes
	      '("mysetup"
"\\documentclass[fontsize=11pt,letterpaper,twoside=false]{scrartcl}
\\usepackage{verbatim}
% \\usepackage[T1]{fontenc}
% \\usepackage{charter,parskip,setspace,layout}
\\usepackage{charter,setspace,layout}
\\usepackage{array,graphicx}
\\usepackage{tabularx,tabulary}
\\usepackage{longtable}
\\usepackage{tabu}
\\usepackage{numprint}
\\npstyleenglish
\\usepackage[npthousnadsep{,}]{numprint}
\\usepackage[at]{easylist}
\\usepackage{csquotes}
%\\usepackage[letterpaper,margin=1.00in]{geometry}
\\usepackage[letterpaper,left=1.00in,right=1.00in,top=1.00in,bottom=1.00in]{geometry}
% \\usepackage[top=1.0in,bottom=0.4in,left=1.2in,nohead]{geometry}
%\\pagestyle{empty}
\\pagenumbering{arabic}
\\newcommand{\\foo}{bar}
[NO-DEFAULT-PACKAGES]
[NO-PACKAGES]
[EXTRA]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

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

end of thread, other threads:[~2016-06-13 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-13 12:31 vertically misplaced thousands separator Charles Millar
2016-06-13 12:46 ` Charles Millar
2016-06-13 13:46   ` Charles Millar

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