[tex-live] Rubber and Tex Live Native

raphael.lallement raphael.lallement at laposte.net
Sun Aug 7 16:23:25 CEST 2011


Hi,

thank you all for your answers. So indeed rubber doesn't use the good path because I set it only in .bashrc. By the way, to launch gedit from a terminal is still not enough, the path is not evaluated or not given to gedit (strange, isn't it ?). So I would like to try the solution involving .bash_profile but I can find it (I tried with the find command). I'm using ubuntu I could make a difference. Do you have any idea of where exacly is/should be the file. Or the Ubuntu equivalent. Thank you.

As I think it could be useful, here is the script I wrote which is able to create a pdf (including also reference, biblio, ...). And only the last call of pdflatex returns error :

#!/bin/sh

FILE_TYPE=${GEDIT_CURRENT_DOCUMENT_NAME##*.}
if [ "$FILE_TYPE" != "tex" ]
then
exit 0
fi

if [ ! -f .$GEDIT_CURRENT_DOCUMENT_NAME.properties.xml ]
then
while [ -z $PARENT_FILE ]
do
PARENT_FILE=$(zenity --file-selection --title="Select Master Doument" --filename="$GEDIT_CURRENT_DOCUMENT_DIR" --file-filter="*.tex")
done
PARENT_FILE=${PARENT_FILE##*/}
echo "<?xml version=\"1.0\" ?>


" > .$GEDIT_CURRENT_DOCUMENT_NAME.properties.xml
else
PARENT_FILE=$(cat .$GEDIT_CURRENT_DOCUMENT_NAME.properties.xml | tr ' ' '\n' | grep value | cut -f2 -d'"')
fi

/usr/local/texlive/2011/bin/x86_64-linux/pdflatex $PARENT_FILE >/dev/null
/usr/local/texlive/2011/bin/x86_64-linux/pdflatex $PARENT_FILE >/dev/null

BIBTEX_FILE=${PARENT_FILE%.tex}.aux
/usr/local/texlive/2011/bin/x86_64-linux/bibtex $BIBTEX_FILE

/usr/local/texlive/2011/bin/x86_64-linux/pdflatex $PARENT_FILE >/dev/null
/usr/local/texlive/2011/bin/x86_64-linux/pdflatex $PARENT_FILE

OUTPUT_FILE=${PARENT_FILE%.tex}.pdf

if [ -f $OUTPUT_FILE ]
then
gnome-open $OUTPUT_FILE
fi


It's made for the Gedit "external tool" plugin, so if you prefer to run from a terminal :
GEDIT_CURRENT_DOCUMENT_NAME : is the name of the document you want to compile,
GEDIT_CURRENT_DOCUMENT_DIR : is the name of the folder containing the document

This script is compatible with rubber as it creates xml files containing the name of the parent file in a spread latex file. So you can ask to the script to compile a son in a composed document, the script will ask you only once which is the parent and then will compile it. Hope it to be helpful.

Thank you
Raph


> Message du 07/08/11 15:36
> De : "Zdenek Wagner" 
> A : "George N. White III" 
> Copie à : "raphael.lallement" , texlive at tug.org
> Objet : Re: [tex-live] Rubber and Tex Live Native
>
> 2011/8/7 George N. White III :
> > On Sun, Aug 7, 2011 at 7:38 AM, Norbert Preining 
wrote:
> >> Hi Raphael,
> >> ...
> 
> > You can check the versions in the .log file, which may also reveal
> > other issues with
> > TeX's search paths, etc.
> >
> >> Does it use TL2011 or the TL that comes with your Ubuntu?
> >>
> >>> To compare I run pdflatex and so but using the full path to the executable, and evrithing works fine.
> >>
> >> That means that rubber somehow picks the wrong TeX?
> >>
> >> I thing that putting the PATH adjustment in the .bashrc IS*NOT*ENOUGH*!!!!
> >
> > Did you log out after adjusting %HOME/.bashrc?  If you are starting
> > gedit from a system menu,
> > the relevant .bashrc is the one that is loaded when you log on.
> >
> No, if you start a program from a system menu or an icon from a panel,
> .bashrc is not used at all, only .bash_profile is used. Moreover,
> .bash_profile is executed only once when you log on. In my computers,
> .bash_profiles executes .bashrc and .bashrc prepends the directories
> to the PATH only if it is not already present (if I start xterm by
> clicking an icon on the panel, if first takes information from
> .bash_profile {and thus .bashrc in my computers} and then executes
> .bashrc). Thus if I modify PATH in .bashrc, the new PATH setting will
> be visible in a new xterm (no need to log off and on) but not in
> programs started from the panel or system menu. For that it is
> necessary to log off and on (or use a wrapper that will execute
> .bashrc).
> > --
> > George N. White III 
> > Head of St. Margarets Bay, Nova Scotia
> >
> 
> 
> 
> -- 
> Zdeněk Wagner
> http://hroch486.icpf.cas.cz/wagner/
> http://icebearsoft.euweb.cz
> 







Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net



More information about the tex-live mailing list