Re: [Orgmode] Using \ref instead of \hyperref in LaTeX export?

2010-10-15 Thread Indraneel Majumdar
Maybe use a hook like the following.. It's for cref, please modify to 
your liking:


(defun creflink()
  "Change all solitary [[]] links to [[target][\cref]] links"
  (regex-replace "\\[\\[\\([^:\[]+?\\)\\]\\]"  "[[\\1][cref{\\1}]]")
)
(add-hook 'org-export-preprocess-hook 'creflink)

Indraneel

On 10/15/2010 04:10 PM, Guy Wiener wrote:

Hello,
Is there a way to tweak the LaTeX export so that for a link 
[[label][desc]] it will produce the standard "\ref{label}" instead of 
"\hyperref[label]{desc}"? I want to be able to use the standard 
article writing, such as "in Section~\ref{sec:bla}...".


Thanks,
  Guy


___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Header levels and section numbering > 3, in LaTeX export

2010-10-08 Thread Indraneel Majumdar



I couldn't get easylist to understand the
\star symbol that orgmode uses. Do you know how to do that?

No.  You might have seen the footnote in the easylist documentation
(on p. 2) which says:

"You might not be happy with the symbols and maybe you'd like to use
another one, or simply have your favorite symbol
as default to avoid remembering such a cumbersome name as 'pilcrow'.
Here's a simple hack that does the job: select the
entire code of the package, and replace all occurrences of Ÿ (<<-- the
pilcrow) with your symbol. Make sure you won't use it in the list for
other purposes, though."

I've not tried this, however.  It would be nice if there were a dead
easy way to get easylist and org-mode to work well together, since the
two are very natural partners.  Let me know if you can make this work.

I couldn't get either \star nor \ast to work so I'm just using \sharp 
now, and am simply replacing # (at beginning of the line) with a hook. 
I'm not sure which is the best hook to use though. I don't want to alter 
my orgmode buffer and also want the hook to run on orgmode syntax. So 
far, I've failed at this.

org-export-first-hook runs in my orgmode buffer and alters the contents.
org-export-latex-after-blockquotes-hook runs after latex export has 
already happened (ie \section etc have already been converted)
Maybe there's a hook in the middle somewhere, but I couldn't find any 
documentation on it.

And also to skip
the first 3 stars in a level4 heading (if I want to retain latex's default
top 3 levels)?

I've never actually gone all the way to making a document
easy-to-publish with Easylist.  I've just manually converted
org-mode's stars to a character Easylist can understand, then manually
wrapped the whole thing in a LaTeX preamble.  The ideal would be to
automate the process, perhaps by using org-babel and putting your
easylist sections in special code blocks. But I've not taken the time
to figure all that out.
I do not even know what babel is, although I've heard it in a ton of 
different contexts. Considering what the word "babel" means, I'm not 
even sure if that is strange or not!

Failing that, I bet you could do a halfway hack with minimal amount of
manual work.  For example (if I understand you correctly), you could
make an org document like this:

* Regular org heading
** Subheading
** Here's a third-level heading
STARTLIST
 My first thesis, which is longer and wordier than it probably should be.
* Of course it's nothing compared to the length of its supporting arguments
*  Both of them
 Here is my second thesis, as convincing as the first
ENDLIST

Org-mode will let you do all of that, just fine.  Then either
manually, or with a temporary latex export hook, do something like
this:

replace STARTLIST with \begin{easylist} and ENDLIST with \end{easylist}
replace ' ' with '&  ' and '* ' with'&&  ' and ** ' with'&&&  ', 
etc.


If you do it in an export hook, I think you'd want to do it in one
that runs before everything else.  That way org-mode will leave
everthing in your easylist environment alone.  What that will do to
quotation marks and /emphasis/ I don't know.

This is exactly what I want to do, but which export hook to use? 
Something that will not modify my original buffer and also understand 
regexp that I can base on what was originally in my buffer. So instead 
of searching for \paragraph, I can search for " ", but I want to 
keep " " in my original org buffer.


Indraneel

This should leave you with an easylist which starts at level '1', in a
document which uses org's header levels 1-3 in the normal latex way.
Is that what you want?

Make sure in the preamble, you have \usepackage[ampersand]{easylist}

Let me know if you need help figuring any of this out in detail.
That's just a rough sketch.

Cheers,

Scot

___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Header levels and section numbering > 3, in LaTeX export

2010-10-06 Thread Indraneel Majumdar
 Thanks Scot, exactlt what I was looking for, and I was actually 
deliberating on the Tractacus! I couldn't get easylist to understand the 
\star symbol that orgmode uses. Do you know how to do that? And also to 
skip the first 3 stars in a level4 heading (if I want to retain latex's 
default top 3 levels)?


Indraneel

On 2010-10-07 3:15, Scot Becker wrote:

And if you just want deeply nested numbered paragraphs, like lists.
You might try the Easylist package:

http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/easylist.html

You'd have to do a tweak or to to get org-mode to export to easylist,
but it shouldn't be too complicated, since easylist takes its input in
a format almost exactly like org's native outline structure.

Scot


On Wed, Oct 6, 2010 at 6:38 AM, Nick Dokos  wrote:

Kai  wrote:


With a .org file having headers 4-5 levels deep (e.g.  This
Section), I'd like the LaTeX export to treat it as a subsubsubsection
with numbering, e.g. 1.1.1.1.  But no luck, and I'm not sure whether
I'm doing something wrong with org-mode, or need to customize my LaTeX
template.  In the org file I have:

#+OPTIONS: H:5 num:t

...which does give the TeX markup of \label{sec-1_1_1_1} in the .tex
file, but the header text is wrapped in a \paragraph{The Header},
instead of \subsubsubsection{The Header}.

Is there a way to have the org-mode LaTeX export mark that up as a
subsubsubsection?  I'm using the org-mode trunk.  Thanks in advance
for any help,


This is a LaTeX limitation (if you want to call it that), not an orgmode
one. See

 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=subsubsub

for some workarounds/comments/references (but be prepared for at least some
strangeness).

HTH,
Nick


___
Emacs-orgmode mailing list
Please 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
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Header levels and section numbering > 3, in LaTeX export

2010-10-05 Thread Indraneel Majumdar

 Hi,

If you're 4 levels down, it'll be a sub sub sub section, same as a paragraph
* Section
** Sub section
*** Sub Sub section
 Paragraph
* Sub paragraph

H:5 will give you the levels but you have to enable numbering explicitly 
with

\setcounter{secnumdepth}{5}

paragraph is actually a sectioning command. If you want to use it as sub 
sub sub section do this:


 Sub sub sub section heading
  Paragraph starts here...

If you simply want numbered paragraphs, do this:


  Paragraph starts here...
And \includepackage{titlesec} to iron out the redundant spaces that 
would otherwise appear.



HTH,
Indraneel

On 2010-10-06 9:06, Kai wrote:
With a .org file having headers 4-5 levels deep (e.g.  This 
Section), I'd like the LaTeX export to treat it as a subsubsubsection 
with numbering, e.g. 1.1.1.1.  But no luck, and I'm not sure whether 
I'm doing something wrong with org-mode, or need to customize my LaTeX 
template.  In the org file I have:


#+OPTIONS: H:5 num:t

...which does give the TeX markup of \label{sec-1_1_1_1} in the .tex 
file, but the header text is wrapped in a \paragraph{The Header}, 
instead of \subsubsubsection{The Header}.


Is there a way to have the org-mode LaTeX export mark that up as a 
subsubsubsection?  I'm using the org-mode trunk.  Thanks in advance 
for any help,


K


___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output

2010-10-05 Thread Indraneel Majumdar
 texi2dvi is also on my minimal MikTex system, I'd certainly love a 
patch that uses it instead of a shell script (although I also have 
cygwin too)..


On 2010-10-05 20:00, Matthew Leifer wrote:

Hi,

I don't know if you are aware, but there is a utility called texi2dvi 
that figures out how many times LaTeX, bibtex, etc. need to be run and 
automatically runs them the correct number of times for you.  It also 
has an option -p that uses pdflatex and generates pdf instead of dvi. 
 In my opinion, it would be better to make use of this rather than 
writing new code to do this, as they have thought about all the edge 
cases in far more detail than is possible here.  It is possible that 
some LaTeX installations do not come with texi2dvi, but it does come 
with the full TeXLive installation so plenty of people are likely to 
have it installed.  If you want to avoid this breaking on systems that 
do not have texi2dvi installed then you could just check for it, use 
it if it is available and, if not, give the user a warning message 
that they may get better results if they install texi2dvi whilst using 
the existing code.


Best,

Matt Leifer

2010/10/5 Sébastien Vauban >


Hi Carsten,

Carsten Dominik wrote:
> Thanks for the patch! I would certainly have a better way to
process these
> files.

Could you make your latest sentence more explicit?


> 1. Can we run bibtex only if we have an indication that it might
be needed?
>Maybe by looking at the output of the first LaTeX run? Hmm,
maybe this
>would not work if only the bibtex database file was changed.

I guess things in that direction are entirely possible. I don't
use bibtex
yet, but will have a look at a better integration.


> 2. The contrill structures you are using, are they standard
shell or is bash
>needed for this?

Good question!  Yes, I implicitly wrote in bash. That won't work
for sure in
Windows...

But, then, how do we do for writing such shells in Emacs?  Go to
Emacs's
builtin shell?  I have no experience with it, but I can have a
look, except:
how would we be sure that the preferred shell of the user is that one?


> 3. Maybe we can extract a useful error message if the last
PDFLaTeX run
>still contains problems? Maybe even load the log file in this
case?

For sure, such behaviors would be a great, in case of failures.

Best regards,
 Seb

>> Here is my (much) better proposition:
>>
>> --8<---cut here---start->8---
>> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
>> index 9a62457..0a2c5fe 100644
>> --- a/lisp/org-latex.el
>> +++ b/lisp/org-latex.el
>> @@ -455,25 +455,35 @@ allowed.  The default we use here
encompasses both."
>>   :group 'org-export-latex
>>   :group 'org-export)
>>
>> +(defcustom org-latex-pdf-max-runs 3
>> +  "Maximum number of times PDFLaTeX is run after BibTeX."
>> +  :group 'org-export-pdf
>> +  :type 'int)
>> +
>> (defcustom org-latex-to-pdf-process
>> -  '("pdflatex -interaction nonstopmode -output-directory %o %f"
>> -"pdflatex -interaction nonstopmode -output-directory %o %f")
>> +  `("pdflatex -interaction nonstopmode -output-directory %o %f"
>> +"bibtex %b"
>> +,(concat "let COUNTER=0; while (grep -e \"Rerun .* cross-
>> references\" %b.log > /dev/null); do if [ $COUNTER -eq "
>> + (int-to-string org-latex-pdf-max-runs)
>> + " ]; then break; fi; pdflatex -interaction
nonstopmode
>> -output-directory %o %f; let COUNTER=COUNTER+1; done"))
>>   "Commands to process a LaTeX file to a PDF file.
>> This is a list of strings, each of them will be given to the shell
>> as a command.  %f in the command will be replaced by the full
file name, %b
>> by the file base name (i.e. without extension) and %o by the
base directory
>> of the file.
>> The reason why this is a list is that it usually takes several
runs of
>> -pdflatex, maybe mixed with a call to bibtex.  Org does not
have a clever
>> -mechanism to detect which of these commands have to be run to
get to a
>> stable
>> -result, and it also does not do any error checking.
>> +pdflatex, mixed with a call to bibtex.  Org does now have a clever
>> mechanism
>> +to detect how many times the document has to be compiled to
get to a stable
>> +result for the cross-references.  Moreover, the number of
compilations
>> after
>> +bibtex is limited to 3 by default (see
`org-latex-pdf-max-runs' for more).
>> +Though, it does not do any error checking.
>>
>> Alternatively, this may be a Lisp function that does the
processing, so you
>> could use this to apply the machinery of AUCTeX or the Emacs
LaTeX mode.

Re: [Orgmode] Latex exporter bug or feature?

2010-10-03 Thread Indraneel Majumdar
 Thanks, but it looks complex. Anyway, my problem is solved. I wrote a 
custom hook to strip out all the subsubsections during export. Latex 
doesn't care if subsubsections exist or not and neither do I if they 
have some unique name like "STRIP" that is easy to regexp. It also takes 
care of preventing accidental shifting of the first paragraph to some 
other heading level if I unknowingly press TAB.


Indraneel

On 2010-10-04 4:04, Scot Becker wrote:

This is, if I remember right, a feature.  Or at least a known
limitation, a deliberate attempt to respect document structure.  Can
you perhaps get what you want by customizing org-export-latex-classes
to start the numbering already on heading level 4?  For example one of
it's 'stanzas' looks like this:

("article" "\\documentclass[11pt, a4paper]{article}"
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
   ("\\paragraph{%s}" . "\\paragraph*{%s}")
   ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))

So make a custom one that looks like this:

("myarticle" "\\documentclass[11pt, a4paper]{article}"
   ("\\section{%s}" . "\\section*{%s}")
   ("\\subsection{%s}" . "\\subsection*{%s}")
   ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))

... and make sure it gets added into the existing list of classes
properly.  i.e  correctly enclosed in parentheses.  This is untested.

Org-mode seems to hold pretty tightly to proper tree structure.  I
think you'll have to achieve what you want by some means other than
skipping a heading level


Scot

On Sun, Oct 3, 2010 at 11:55 AM, Indraneel Majumdar
  wrote:

  Or am I doing something wrong?

With
#+OPTIONS H:5

paragraphs are not exported if subsubsection is missing.

eg. my orgfile:

* Section
** Sub section

My paragraph starts here...


The paragraph is not exported. The reason I want H:5 is that this is the
simplest way to obtain numbered paragraphs (I do not have to put
\paragraph{} in front of every paragraph).

Please help,

Indraneel

___
Emacs-orgmode mailing list
Please 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
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Omit top level heading in latex export?

2010-10-03 Thread Indraneel Majumdar

 I fixed my lisp. Just to archive the solution, here's my new defun:

(defun regex-replace (regex string)
  (point-to-register 'rrr)
  (goto-char (point-min))
  (while (re-search-forward regex nil t)
(replace-match string))
  (jump-to-register 'rrr))


On 2010-10-03 23:01, Indraneel Majumdar wrote:

 Thanks Matt and Suvayu,

I messed up with my lisp and that was causing the error. So now I have 
another problem, how to fix the lisp code...


I'm using a org export hook to make all targets invisible by a regex 
replace. This is probably messing up the selection, so what do I do to 
not lose the selected text till the exporter takes over (or probably 
not tamper with the selection or something)? I don't know any lisp.


(defun regex-replace (regex string)
  (goto-char (point-min))
  (while (re-search-forward regex nil t)
(replace-match string)))

(defun invisibletag()
  "Make all targets invisible"
  (regex-replace "\\(<<.+?>>\\) " "\\1(INVISIBLE) ")
)
(add-hook 'org-export-first-hook 'invisibletag)


Indraneel

On 2010-10-03 22:21, Matt Lundin wrote:

Indraneel Majumdar  writes:


On 2010-10-03 20:57, suvayu ali wrote:
On 3 October 2010 06:31, Indraneel 
Majumdar   wrote:

   Hi,

I'm running into a problem with latex export. I have several 
essays under a
top level heading "Essays". How can I export say only one essay 
without the
top level heading "Essays" also showing up in the output as a 
"Section"? I
want the heading of my essay to be displayed as a latex section. 
Is this
possible in any simple way? The manual describes some option to 
define my
own class in the .emacs file, but I couldn't understand that very 
well.

eg.

* Essays
** Essay One
** Essay Two

I want to export only "Essay Two" (eg with a :export: tag) and 
don't want

"Essays" to show up.


What about just exporting the subtree you want? I believe the way to
do that is to go to the subtree and while exporting limit the export
with `1'. Hope this helps.


Yes, that exports the subtree (Essay Two) and also exports "Essays"
(but not "Essay One"). I do not want "Essays" to show up at all.

I cannot replicate this. Take the following subtree:

--8<---cut here---start->8---
* Essays
** Essay One
Some text.
** Essay Two
Some special text.
--8<---cut here---end--->8---

With the latest org from git, if I press "C-c C-e 1 h" while the cursor
is on (or under) the Essay Two headline, the html output looks like
this:

--8<---cut here---start->8---
Essay Two

Some special text.

Author: Matt Lundin

Date: 2010-10-03 12:47:58 EDT

HTML generated by org-mode 7.01trans in emacs 24
--8<---cut here---end--->8---

Best,
Matt

___
Emacs-orgmode mailing list
Please 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
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Omit top level heading in latex export?

2010-10-03 Thread Indraneel Majumdar

 Thanks Matt and Suvayu,

I messed up with my lisp and that was causing the error. So now I have 
another problem, how to fix the lisp code...


I'm using a org export hook to make all targets invisible by a regex 
replace. This is probably messing up the selection, so what do I do to 
not lose the selected text till the exporter takes over (or probably not 
tamper with the selection or something)? I don't know any lisp.


(defun regex-replace (regex string)
  (goto-char (point-min))
  (while (re-search-forward regex nil t)
(replace-match string)))

(defun invisibletag()
  "Make all targets invisible"
  (regex-replace "\\(<<.+?>>\\) " "\\1(INVISIBLE) ")
)
(add-hook 'org-export-first-hook 'invisibletag)


Indraneel

On 2010-10-03 22:21, Matt Lundin wrote:

Indraneel Majumdar  writes:


On 2010-10-03 20:57, suvayu ali wrote:

On 3 October 2010 06:31, Indraneel Majumdar   wrote:

   Hi,

I'm running into a problem with latex export. I have several essays under a
top level heading "Essays". How can I export say only one essay without the
top level heading "Essays" also showing up in the output as a "Section"? I
want the heading of my essay to be displayed as a latex section. Is this
possible in any simple way? The manual describes some option to define my
own class in the .emacs file, but I couldn't understand that very well.
eg.

* Essays
** Essay One
** Essay Two

I want to export only "Essay Two" (eg with a :export: tag) and don't want
"Essays" to show up.


What about just exporting the subtree you want? I believe the way to
do that is to go to the subtree and while exporting limit the export
with `1'. Hope this helps.


Yes, that exports the subtree (Essay Two) and also exports "Essays"
(but not "Essay One"). I do not want "Essays" to show up at all.

I cannot replicate this. Take the following subtree:

--8<---cut here---start->8---
* Essays
** Essay One
Some text.
** Essay Two
Some special text.
--8<---cut here---end--->8---

With the latest org from git, if I press "C-c C-e 1 h" while the cursor
is on (or under) the Essay Two headline, the html output looks like
this:

--8<---cut here---start->8---
Essay Two

Some special text.

Author: Matt Lundin

Date: 2010-10-03 12:47:58 EDT

HTML generated by org-mode 7.01trans in emacs 24
--8<---cut here---end--->8---

Best,
Matt

___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Omit top level heading in latex export?

2010-10-03 Thread Indraneel Majumdar



On 2010-10-03 21:12, suvayu ali wrote:

On 3 October 2010 08:31, Indraneel Majumdar  wrote:

On 2010-10-03 20:57, suvayu ali wrote:

On 3 October 2010 06:31, Indraneel Majumdar
  wrote:

  Hi,

I'm running into a problem with latex export. I have several essays under
a
top level heading "Essays". How can I export say only one essay without
the
top level heading "Essays" also showing up in the output as a "Section"?
I
want the heading of my essay to be displayed as a latex section. Is this
possible in any simple way? The manual describes some option to define my
own class in the .emacs file, but I couldn't understand that very well.
eg.

* Essays
** Essay One
** Essay Two

I want to export only "Essay Two" (eg with a :export: tag) and don't want
"Essays" to show up.


What about just exporting the subtree you want? I believe the way to
do that is to go to the subtree and while exporting limit the export
with `1'. Hope this helps.


Yes, that exports the subtree (Essay Two) and also exports "Essays" (but not
"Essay One"). I do not want "Essays" to show up at all.


In that case you can try the `noexport' tag on the top level headline
with this header `#+EXPORT_EXCLUDE_TAGS: noexport' option. I just
tried it, seems to work pretty well.

Does not work for me. It blocks out the entire tree, even if I have 
:export: on "Essay Two". From the manual, it seems that is how it should be.

Indraneel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Omit top level heading in latex export?

2010-10-03 Thread Indraneel Majumdar


On 2010-10-03 20:57, suvayu ali wrote:

On 3 October 2010 06:31, Indraneel Majumdar  wrote:

  Hi,

I'm running into a problem with latex export. I have several essays under a
top level heading "Essays". How can I export say only one essay without the
top level heading "Essays" also showing up in the output as a "Section"? I
want the heading of my essay to be displayed as a latex section. Is this
possible in any simple way? The manual describes some option to define my
own class in the .emacs file, but I couldn't understand that very well.
eg.

* Essays
** Essay One
** Essay Two

I want to export only "Essay Two" (eg with a :export: tag) and don't want
"Essays" to show up.


What about just exporting the subtree you want? I believe the way to
do that is to go to the subtree and while exporting limit the export
with `1'. Hope this helps.

Yes, that exports the subtree (Essay Two) and also exports "Essays" (but 
not "Essay One"). I do not want "Essays" to show up at all.


Indraneel

Thanks in advance,
Indraneel



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Omit top level heading in latex export?

2010-10-03 Thread Indraneel Majumdar

 Hi,

I'm running into a problem with latex export. I have several essays 
under a top level heading "Essays". How can I export say only one essay 
without the top level heading "Essays" also showing up in the output as 
a "Section"? I want the heading of my essay to be displayed as a latex 
section. Is this possible in any simple way? The manual describes some 
option to define my own class in the .emacs file, but I couldn't 
understand that very well.

eg.

* Essays
** Essay One
** Essay Two

I want to export only "Essay Two" (eg with a :export: tag) and don't 
want "Essays" to show up.



Thanks in advance,
Indraneel

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Latex exporter bug or feature?

2010-10-03 Thread Indraneel Majumdar

 Or am I doing something wrong?

With
#+OPTIONS H:5

paragraphs are not exported if subsubsection is missing.

eg. my orgfile:

* Section
** Sub section

My paragraph starts here...


The paragraph is not exported. The reason I want H:5 is that this is the 
simplest way to obtain numbered paragraphs (I do not have to put 
\paragraph{} in front of every paragraph).


Please help,

Indraneel

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] table, moving cells

2010-09-30 Thread Indraneel Majumdar

 On 2010-09-30 13:21, "Martin G. Skjæveland" wrote:


For the seating plan, I ended up with lots of post-it notes on a wall, 
which worked just fine! :)


You might consider using a concept/graph editor like yED (closed source) 
or Dia or xfig and save the trees and the paint on your wall!


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] problem with label in latex export

2010-09-22 Thread Indraneel Majumdar
 Thanks Bastien, this works inline. Please put it in the manual, it's 
just one line. I've spent looking for it every inch of the manual for 
more than a day.


So will you be putting in \phantomsection for inline targets to work? I 
guess if someone is using a <> then it's more likely /not/ to be 
a section heading. Putting it at a section heading doesn't hurt, but not 
having it inline makes for a useless <>. Off course for Latex 
only, so probably should be in the exporter.


Indraneel

On 2010-09-22 14:40, Bastien wrote:

Hi Indraneel,

Indraneel Majumdar  writes:


11.
 #+<>
 Some text
12.  More text [[target][go to]]

You're right that there is a problem.

The usual way of turning radio links invisible is to comment them, but
Org comments need to be at the beginning of the line, which breaks list
indentation.  (Btw, no need for the '+' in '#+' -- '#+' is the syntax
prefix for optional elements like blocks, etc.)

The workaround here is to add (INVISIBLE) after your<>

This works:


11.<>(INVISIBLE)
 Some text
12. More text [[target][go to]]

It exports okay in HTML and LaTeX.

I've added a FAQ entry for this -- not sure whether it should go in the
manual.

Thanks for bringing this up!



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] problem with label in latex export

2010-09-21 Thread Indraneel Majumdar

 Sorry, forgot to cc to the list...

 Hi Bastien,

I'm so glad to receive a reply. The problem is twofold. I need numbered 
paragraphs in Latex, with cross-references to the paragraphs. Since 
latex seems to have muddled with \par and \endpar, although numbered 
paragraphs are possible in Tex, they are not automatic or simple in 
latex. Numbered lists, however are easy in orgmode. Another problem in 
Tex/Latex is that references always point to the beginning of the 
smallest environment (probably actually section, but maybe hyperref 
modifies it to the beginning of environment). So, placing a \label in a 
numbered list has the desired effect. However, orgmode seems to have a 
bug (or a feature lack), in that I cannot place a #+<> inside a 
list without destroying the automatic numbering.

An example of what does not work (no label generated):
11.
#+ <>
Some text
12.  More text [[target][go to]]

And this one breaks automatic numbering:

10. Something
#+<>
11. Some text << running C-c C-c on 11 changes it to 1.

Obviously, I want the target to be the item, not to some changeable text 
in the list content, and I also want to hide the target identifier.  
[Two more problems I noticed (or my lack of knowledge of orgmode): 
<> always prints out the contents; i.e. an option like 
<> would be nice. Also numbers in []; i.e. [[11]] 
or [[11][see 11]] get mangled in latex output; I couldn't figure out how 
to avoid that.]


Since I couldn't use numbered lists, the other option was to number 
paragraphs by hand, and place #+<> in the lines above them. 
Orgmode does correctly place the \label but latex/tex ignores it. 
hyperref enables this label only if \phantomsection is present in the 
line above it. With \phantomsection and \label the pdf output works 
fine. Actually \phantomsection \label{target} works fine anywhere in the 
text.


My suggestion is twofold:

1. Allow a <> where description can be empty or 
nil; eg. <<>>   If orgmode does not do something like this 
already, this will allow suppressing contents of the target in the 
output, if target is present inline; i.e. no #+
2. Add a \phantomsection where ever a <> is 
located, while exporting to latex.


Please let me know if I'm missing something. I'm new to orgmode, and 
thank you for it.


Indraneel


On 2010-09-22 4:11, Bastien wrote:

Hi Indraneel,

Indraneel Majumdar  writes:


Since orgmode already uses hyperref, is there any reason why
\phantomsection is not added before \label by default?

Can you explain why \phantomsection is useful here?

Thanks,



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug in column view with cookie on item line

2010-09-13 Thread Indraneel Majumdar
 With [%] or [/] set to update, the item line gets mangled as soon as 
TODO is changed to DONE from column view.


Here's what it looks like:

** TODO test 1 [/]
:PROPERTIES:
:Effort: 1
:END:

*** T[0/1[0/1[0/1[0/1[0/1[1/1]] <<< MANGLED AGAIN (line was TODO test 1 [/])
:PROPERTIES:
:Effort: 1
:END:

 DONE [0/1[0/1[0/1[0/1[0/1[1/1]/]  MANGLED
 CLOSED: [2010-09-13 Mon 16:20]
 :LOGBOOK:
 - State "DONE"   from "START"  [2010-09-13 Mon 16:20]
 - State "START"  from ""   [2010-09-13 Mon 16:20]
 :END:
:PROPERTIES:
:Effort: 1
:END:

** DONE Test 1
   CLOSED: [2010-09-13 Mon 16:20]
   :LOGBOOK:
   - State "DONE"   from "START"  [2010-09-13 Mon 16:20]
   - State "START"  from "TODO"   [2010-09-13 Mon 16:20]
   :END:
:PROPERTIES:
:Effort: 1
:END:

*[0%[0%[0%[0%[0%[0%[0%]%] < SCHEDULED: <2010-09-15 Wed> CLOSED: 
[2010-09-13 Mon 16:18]

:LOGBOOK:
- State "DONE"   from "START"  [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:18]
:END:
:PROPERTIES:
:Effort: 2
:END:
SCHEDULED: <2010-09-13 Mon> DEADLINE: <2010-09-15 Wed>
:PROPERTIES:
:Effort: 1
:END:

** DONE Test 1
SCHEDULED: <2010-09-13 Mon> DEADLINE: <2010-09-14 Tue> CLOSED: 
[2010-09-13 Mon 16:18]

:LOGBOOK:
- State "DONE"   from "START"  [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:18]
:END:
:PROPERTIES:
:Effort: 4
:END:

** DONE Test 1
SCHEDULED: <2010-09-13 Mon> DEADLINE: <2010-09-14 Tue> CLOSED: 
[2010-09-13 Mon 16:18]

:LOGBOOK:
- State "DONE"   from "START"  [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:00]
- State "START"  from "DONE"   [2010-09-13 Mon 15:57]
- State "DONE"   from "START"  [2010-09-13 Mon 15:57]
- State "START"  from "DONE"   [2010-09-13 Mon 15:57]
- State "DONE"   from "FIND"   [2010-09-13 Mon 15:57]
- State "DONE"   from "START"  [2010-09-13 Mon 15:57]
- State "START"  from "TODO"   [2010-09-13 Mon 15:57]
:END:
:PROPERTIES:
:Effort: 2
:END:



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] problem with label in latex export

2010-09-10 Thread Indraneel Majumdar

 Hi all,
I'm having some problems with latex export, can someone help me out?

Since orgmode already uses hyperref, is there any reason why 
\phantomsection is not added before \label by default? How can I enable it?


Also, how can I disable <> from printing out the value in the 
latex output from inside numbered lists? ie:

\label{target}
instead of
\label{target} target

It works fine at section headings but not within a list.

I tried this:

1.
#+ <>
Some text
2.  More text [[target][go to]]

and the latex export ignored the target (ie, no \label was generated)

TIA,
Indraneel

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] IP locator

2010-09-09 Thread Indraneel Majumdar
 Erik, Thanks for the link. Did anyone do anything more on this? If 
not, I can try to hack up some pymacs extensions.


On 2010-09-10 10:13, Erik Iverson wrote:

There was a little discussion of this earlier this summer:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg26465.html

On 09/09/2010 11:19 PM, Indraneel Majumdar wrote:

Hi all,
Is there any way of putting in location information automatically, eg.
in a Diary or Journal entry? I was thinking of some sort of IP location
based service (some web based ones are free, or even google). Or, a
connected cellphone with GPS is also a possibility.

I can see how the iphone app will benefit (although I don't have one
(yet)). Not sure how quick the processors in phones are these days, but
coupled with a barcode scanning .el it might be a handy thing to carry
around (eg. "buy mama bear's oldstyle honey from shop near bridge below
highway 9" can be done in one point and click.)

Indraneel

___
Emacs-orgmode mailing list
Please 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
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] IP locator

2010-09-09 Thread Indraneel Majumdar

 Hi all,
Is there any way of putting in location information automatically, eg. 
in a Diary or Journal entry? I was thinking of some sort of IP location 
based service (some web based ones are free, or even google). Or, a 
connected cellphone with GPS is also a possibility.


I can see how the iphone app will benefit (although I don't have one 
(yet)). Not sure how quick the processors in phones are these days, but 
coupled with a barcode scanning .el it might be a handy thing to carry 
around (eg. "buy mama bear's oldstyle honey from shop near bridge below 
highway 9" can be done in one point and click.)


Indraneel

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] latex link target name

2010-09-09 Thread Indraneel Majumdar

 Hi,

I'm trying not to have the target name printed out when exporting to 
latex, and am having no success at it.

My org file:

** section 2
22. [...@start:22] Oh, have to put sometjing here too!
23. nothing here
24. cfqw4cygq3h
25. gvre4vghq3
26. gvq34vh3ch2
27.
#+ <>
What's all that
28. c431y2h32
29. gv34qyh13h2
30. cf42q3hch
31. again nothing
32. and again, see [[point][see this]]

And the latex output:

\begin{enumerate}
\setcounter{enumi}{21}
\item  Oh, have to put sometjing here too!
\item nothing here
\item cfqw4cygq3h
\item gvre4vghq3
\item gvq34vh3ch2
\item What's all that
\item c431y2h32
\item gv34qyh13h2
\item cf42q3hch
\item again nothing
\item and again, see \hyperref[point]{see this}
\end{enumerate}


Another example:

26. gvq34vh3ch2
27. <> What's all that
28. c431y2h32
29. gv34qyh13h2
30. cf42q3hch
31. again nothing
32. and again, see [[point][see this]]

and latex out:

\item \label{point}point What's all that
\item c431y2h32
\item gv34qyh13h2
\item cf42q3hch
\item again nothing
\item and again, see \hyperref[point]{see this}


What am I doing wrong? I've struggled for hours with this. do I /have/ 
to meddle with the latex output to fix this?



TIA,
Indraneel

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Possible BUG in org-wikinodes.el

2010-08-31 Thread Indraneel Majumdar

 Hi,
Is this a typo?
org-find-exact-headling-in-buffer
occurs thrice instead of
org-find-exact-headline-in-buffer

I couldn't get it to work with headling. headline works fine.
I'm new to orgmode, and lisp in general, so I may be wrong.
Please let me know if I screwed up something (please cc, I'm
not on the list)

Thanks,
Indraneel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode