From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: Questions on LaTeX Exporter Date: Sun, 6 Mar 2011 12:39:55 -1000 Message-ID: <9810BB90-62BA-4957-B147-D5805A39056A@tsdye.com> References: <87ei6lpa06.fsf@gmail.com> <80B13489-D629-4DE3-A344-6A74EE38D804@tsdye.com> <4D738A76.9000002@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=47671 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwMcO-0007TV-Jr for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 17:40:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwMcM-0006oX-Ok for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 17:40:04 -0500 Received: from cpoproxy3-pub.bluehost.com ([67.222.54.6]:50919) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PwMcM-0006mr-IQ for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 17:40:02 -0500 In-Reply-To: <4D738A76.9000002@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Aloha Rasmus, On Mar 6, 2011, at 3:21 AM, Rasmus wrote: > Hi, > >> This would make you an "early adopter." > > Well, to be fair the latex exporter have been there for years and I =20= > have > used it for non-important documents for years. But papers utilizing =20= > more > features have proven difficult, so far. > I didn't mean to imply any criticism of the Org-mode LaTeX exporter. =20= It was designed to export notes and does a fantastic job of that. The =20= fact that we are wanting to use it for other kinds of more complex =20 documents is testament to how good it is. >> Of course, the paper doesn't have abbreviations that end with =20 >> dots ... > The problem might be traced back to my less-than-stylish prose :) > No problem. My conference paper is not very complex, but I am very =20 happy with the LaTeX code produced by Org-mode. The paper itself was =20= easy to write in Org-mode and I am a big fan of having everything in =20 one file. I'd like to write larger, more complex documents in Org-=20 mode, too. >> Yes, and the overhead does get in the way, at least for my writing >> projects. > > With folding, AUCTeX buffers become quite readable. But linking, =20 > plannig > and TODOs are nice. Previously, I have had a notes.org and several > tex files. > > >> On the other hand, I think it is the only way currently to get from >> Org-mode to perfect LaTeX. > > ... And in that case AUCTeX provide a nicer environment in my > oppinion. Org would be nice for text heavy documents, though. > Yes, AucTeX sets a high standard. >>> Fixme in Org >> If you figure this one out, please share > I haven't. I think one of either of the following would be nice. > > 1) Have them fold like I do in AUCTeX (i.e. \fxnote{=B7} is replaced = by > [fix] in the buffer) > 2) Use special footnotes. This could be an org-centric system, =20 > without > the need of fixme.sty. This would require that Org could tell the > difference between fn:x and fix:x, and further, one would need to > be able to specify which set(s) of footnotes were to be exported. > > *More questions, sorry* > > Org populates every section with a label. I would > like to \ref or \vref these. I could predict \label's, but this a =20 > rather > fragile solution. When I use "Org-links" I get a text link suitable > for e.g. html. I want to use \ref to get a number. One solution is > > ,---- > | * section > | #+latex: \label{sec:sec} > `---- > > But there /must/ be a better way to this, eh? Good point. It would be great to leverage Org-links to resolve cross =20= references to document sections. > > And other question, which should also be simple, but which I have =20 > not been > able to figure out. > > I have internalized word count in my org file using babel: > > ,---- > | ** Getting Word Count > | #+srcname: wordcount > | #+BEGIN_SRC sh > | #!/bin/bash > | alias calc=3D'Rscript -e "cat( file=3Dstdout(), =20 > eval( parse( text=3Dpaste( commandArgs(TRUE), = collapse=3D\"\"))),\"\n\")"' > | calc `texcount -inc -sum -relaxed -1 -q -total assignment.tex`/400 > | #+END_SRC > | > | #+results: wordcount > | : 0.6425 > `---- > > First, this should be evaluated post-export, but this is a trival =20 > issue > as I can export the document in question twice. However, I want to > include the result in a \thanks{=B7}-node in the #+TITLE. > > I have tried varioues methods, but so far without luck. To given an > example, I want to replace X by the results of my Babel-snip in the > following: > > ,---- > | #+TITLE: \Large Education in Labor Markets With Asymmetric =20 > Information\thanks{Approximatly X words using \TeX Count} > `---- > You are right. Using an inline code block, e.g. src_sh[:noweb yes]=20 {<>}, doesn't seem to work in #+TITLE. I'm not sure how it =20= might be made to work there. All the best, Tom > Thanks in advance, > Rasmus