General :: Using Pdflatex Into A Bash Script?

Apr 8, 2011

I am using pdflatex to generate reports from txt files, but have some doubts I can not solve by myself using the man page.Rerun pdflatex Quite often you need to rerun pdflatex, to achieve the desired result. Now, I simply do:

Code:

--bash code here---
pdflatex file.tex
pdflatex file.tex
--more bash code here--

But I am afraid this is not the right way to do it. Is there any better way to tell pdflatex to compile twice? Stop on errors While running pdflatex manually, quite often you are prompted to do something when errors occur. How to tell pdflatex to just stop and avoid being waiting for a response? Errors file I don't understand from the man page how to create an error file to debug the tex file...

View 2 Replies


ADVERTISEMENT

OpenSUSE :: Pdflatex Not Working In Suse 11.3?

Feb 23, 2011

I tried to compile with latex (pdflatex) some beamer presentations and I getpdflatex astrosiesta0411.texwarning: kpathsea: configuration file texmf.cnf not found in these directories:usr/share/texmf/web2c.This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE)I am not a latex expert, but in yast I noticed that suse 11.3 is now installing texlive (I have also the texlive-bin bin-latex latex and latex-doc installed) while my old 9.2 where everything worked had tetex.I found that there is no directory web2c in /usr/share/texmf, but there is one in /usr/lib/texmf/.I also found that /usr/share/texmf/README says:And yet another: texmf-dist should be distribution-independent, so that,in theory, it could be used by distributions other than TeX Live. So,no web2c/kpathsea-specific files.

View 9 Replies View Related

Software :: Generate Pdf File In Hindi Using Pdflatex?

May 14, 2009

I am trying to generate pdf file in hindi using pdflatex. my tex file is having unicode hindi text. it gives me following error.

! Undefined control sequence.
<inserted text> extdevanagarivowelo
{ extdevanagariha } extdevanagarivir...
l.38 end{document}
}

View 3 Replies View Related

Ubuntu :: Pdflatex File Not Found On Samba Share

May 31, 2011

I am trying to compile a LaTeX document using pdflatex on a CIFS/SAMBA network share.

The file compiles fine on the local drive.

Then if I copy it on to the network share and run pdflatex foo.tex I get:

Code:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
! I can't find file `foo.tex'.
<*> foo.tex

I can view the file with less, so it's not permissions.

My fstab mounts the drive as:

Code:
//someserver/dir /mnt/mountpoint cifs user,username=****,rw 0 0

View 2 Replies View Related

Ubuntu :: Unable To Install LaTeX / No Pdflatex File In Repos

Aug 3, 2010

When I install the texlive packages (LaTeX installation) in Mint 9 (= Ubuntu 10.04), the pdflatex module is not installed. Yet it's required for producing pdf files from LaTeX editors, for example jEdit with the LaTeX Tools plug-in. pdflatex is not in the Mint/Ubuntu repos.

View 3 Replies View Related

Software :: Set Font Size To Times New Roman 14pt In Pdflatex?

Apr 10, 2009

I am preparing my report using pdflatex. According to the specification given, the font must be Times New Roman 14pt. I googled and found that usepackage{times} could be used. I also read in wiki books that Large will set the font size to 14pt if the default size is 11pt. But it was also given that the font size for Large may be varying according the document class. I am using document class report. I am not sure if setting Large will make the font size to 14pt. When googling I found a command fontsize. But I couldn't find proper documentation to use it. It would be great if get some information on how to set the font style and size.

View 2 Replies View Related

Debian :: Latex "pdflatex: Fatal: Could Not Undump"?

Apr 12, 2010

when i tried to install texmaker, it's because kile did't work, i did something wrong and i can't compile latex or pdflatex The Error: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled.pdflatex: fatal: Could not undump 16788 4-byte item(s).i tried to uninstall, remove , remove --purge, reinstall and nothing ... the same error

View 1 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

General :: SSH Connection From BASH Script Stops Further BASH Script Commands

Dec 3, 2010

What happens when the script executes is that the ssh connection works and parks me at the remote hosts's shell login. Therefore, the "firefox" command refuses to execute. I need to know how to make the "ssh" connection occur, stay open, and go into the background so that the rest of the script can execute.If I could also do this with the "firefox" line so that the entire term window could be closed would also be helpful.

View 3 Replies View Related

General :: Bash - HISTSIZE - Readonly Variable -bash - HISTFILESIZE - Readonly Variable

Dec 8, 2009

On one of my servers I see this when I log in. What does this mean and how can I get it to go away? Everything seems to work fine, but none of my other machines give this error.

View 5 Replies View Related

Programming :: Bash: Printing The Line Number In Bash Script?

Feb 4, 2011

I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.

View 3 Replies View Related

Programming :: Bash Ctrl+c Tarp And Bash Read With Timeout?

Jan 24, 2010

simple bash code:

Code:
#!/bin/bash
trap "echo 'you got me'" SIGINT SIGTERM # to trap ctrl+c
echo "Press ctrl+c during 5 sec loop"
for ((i=0;i<5;i++)); do

[Code]...

How come code behaves normally and stops when ctrl+c signal is caught and resumes, but after I use at least one timeout read in the code it looks like, if signal is caught again it doesn't pause the execution but skips the loop. If you remove -t (timeout) option from the read, both loops look the same!

View 10 Replies View Related

Ubuntu :: Terminal Bash / -bash: Ls: Command Not Found

Jun 5, 2011

I got a problem with terminal, since i'm really a noob with terminal i don't know how to fix it.Everytime i type in a command it shows for example:

-bash: ls: command not found

Even the basic commands don't work... just cd <directory> and those things works

View 9 Replies View Related

Programming :: Reading A Bash Variable In Bash Scripting ?

Nov 26, 2008

I have a config file that contains:

my.config:

Code:

Now in my bash script, I want to get the output /home/user instead of $HOME once read. So far, I have managed to get the $HOME variable but I can't get it to echo the variable. All I get is the output $HOME.

Here is my parse_cmd script:

Code:

View 3 Replies View Related

Programming :: Run Multiple Bash And Php Scripts From A Bash Script?

Jul 25, 2011

I have written quite a few separate bash & scripts and php scripts that up to now I have run from cron jobs. However I have to estimate how long each takes to run, before running the next and so it probably takes much longer than necessary to run them all. They have to run in order.

Now there are so many I am thinking it would be better to have a master bash script that would run one after the other, but I am not sure how to get the master script to wait before starting to run the next script. Is this possible and is there a command that will make the script wait between bash and php scripts , for them to finish, before running the next?

View 5 Replies View Related

Slackware :: Bash - Random Headers When Starting Bash In X?

Jan 13, 2011

I have searched and searched and maybe I don't know how to articulate this issue with out just posting the problem I'm having. Every time I bring up a terminal window I get the following "Header"

declare -x COLORTERM="gnome-terminal"
declare -x CPLUS_INCLUDE_PATH="/usr/lib64/qt/include"
declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-xSFd6zqrYQ,guid=dc5e07974559da016842742900000090"
declare -x DISPLAY=":0.0"

[Code]...

To be honest I cheated and used the .bashrc / .profile files from Ubuntu and all was working fine for a while now and it seems something changed to cause this... any ideas on why I am getting this? I checked my .bashrc and my /etc/profile and it doesn't look like anything is amiss..

View 3 Replies View Related

Programming :: Bash: Get Filename And Extension Using Bash?

Jan 9, 2010

I would like to get the filename (without extension) and the extension separately. The best solution I found so far is:

Let FILE="thefilenameofsomefilesfor_instance.txt"

Code:

NAME=`echo "$FILE" | cut -d'.' -f1`
EXTENSION=`echo "$FILE" | cut -d'.' -f2`

I think it would be better to count the len and remove 3 chars to right to get the extension, but it can be macintosh filenames with have 4 chars for extensions.

View 5 Replies View Related

General :: Bash - Using Terminal Vs KDE?

Mar 18, 2010

Im used to using nautilus within centos but have recently just got a VPS and quickly realising that using a KDE is unacceptable in this environment. Although I do find it so much quicker doing things like folder permissions in KDE rather than typing it all out in the terminal? Everyone I speak to says, use the terminal and I should learn this way as opposed to using the KDE, but theres certain things I just dont get

How is it possible to make quick changes to scripts and viewing them in a browser etc , without a mouse or using KDE? and only using a terminal?? I am wondering how to develop websites just using the terminal?

How can it be quicker to type out/view permissions etc in the terminal when its instant and just a few clicks in the KDE?

View 3 Replies View Related

General :: Difference Between &> And >& In Bash?

Sep 14, 2011

What is the difference between &> and >& in bash? tldp did not mention the latter one. Is it really a redirection operator?

View 3 Replies View Related

General :: How To Use The Bash Script

Dec 2, 2010

I am looking for a bash script to do the following.

File1:

ID Size
1 8
2 8

[code]....

the script should read the above file and take my input as Size = 8 (may be), count = 3 , sequential = Y and the output should be

7
8
9

and if sequential = N it should give me first 3 ID's with size 8.

1
2
7

note that the ID's are in Hex

View 8 Replies View Related

General :: Bash Out Of Control ?

Jul 15, 2010

I created a system restore file.

code:

And hav tried out:

Code has been streaming past for ages. Longer than a fresh install!

I'm wondering if i've done something to create a cycle?

How and should i interupt it? If i ctl alt F7, will it take me back to Desktop?

View 6 Replies View Related

General :: Can't Run Some Bash Scripts

May 7, 2011

why rt.sh and test.sh cannot be found, but randm3u.sh runs just fine.

Code:
g ./rt.sh
: No such file or directory
g ./test.sh
: No such file or directory
g ls -l rt.sh test.sh randm3u.sh

[Code]....

View 14 Replies View Related

General :: What Does Symbol ^ Do In Bash

Sep 13, 2010

What does symbol ^ do in bash?

For example:

Code:
grep -c ^processor /proc/cpuinfo

View 4 Replies View Related

General :: Difference Between Ksh And Bash?

Feb 24, 2010

What are significant differences between ksh and bash? I read somewhere that ksh is proprietary shell and bash is completely open source.

View 11 Replies View Related

General :: Get Elements From List In Bash?

Mar 19, 2010

Here is a LIST:

List = "abcd 1234 jvm something"

How to get the second element "1234" without looping all the list?

View 2 Replies View Related

General :: Unset Or Get Rid Of A Bash Function?

Jun 19, 2010

If you set or export an environment variable in bash, you can unset it. If you set an alias in bash, you can unalias it. But there doesn't seem to be an unfunction.

Consider this (trivial) bash function, for example, set in a .bash_aliases file and read at shell initialization.

function foo () { echo "bar" ; }

How can I clear this function definition from my current shell? (Changing the initialization files or restarting the shell doesn't count.)

View 1 Replies View Related

General :: Bash - How To Close My Script When Done

Jun 25, 2010

I'm working on a script to manage some stuff on my server and I'm trying to figure out how I can close my script when I'm done with it. I open it using &, but how can I kill it with another script? I'm trying to do this programmatically but I'm very unfamiliar with Linux.

View 2 Replies View Related

General :: Run Tcsh But Bash Started Instead

Jul 23, 2010

I tried to start a tcsh on my Fedora 7 (default shell is bash)

[ss@ssvm ~]$ tcsh
[ss@ssvm ~]$ echo $SHELL
/bin/bash

As you see, another bash shell started.

I looked at the tcsh file:

[ss@ssvm ~]$ ll /bin/tcsh
-rwxr-xr-x 1 root root 345348 2007-02-26 23:58 /bin/tcsh
[ss@ssvm ~]$ ll /bin/csh
lrwxrwxrwx 1 root root 4 2010-03-07 13:13 /bin/csh -> tcsh

It is not a link (but csh is). I don't understand why this is happening.

View 3 Replies View Related

General :: Use Scp In A Bash Script Without Specifying Password?

Jul 30, 2010

I am a bash newbie, and am writing a bash script that will allow transfer of files between two computers. BTW, is there a more secure alternative to scp? Currently, I am doing this manually, by using scp. The remote server always prompts me for the password, and I supply that. I want to automate this (hence the bash script). However, I dont want to supply my password in plain text (or if at all - I was under the impression that open SSL does away with passwords and uses certificates etc?).

how I can automate my current process, without explicitly displaying my password. I am running on Ubuntu 10.0.4

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved