Questions tagged [latex]

LaTeX is a macro package implemented on Don Knuth's TeX programming language and is used primarily for creating high quality written documents. Note that http://tex.stackexchange.com is specifically dedicated to LaTeX questions (and TeX, and other related technologies).

Filter by
Sorted by
Tagged with
18
votes
3answers
49k views

How to fully install Latex in fedora?

What is the equivalent to sudo apt-get install texlive-full on Fedora system? I read it is yum install texlive-scheme-full. Am I correct?
13
votes
3answers
8k views

Is troff/groff relevant anymore?

I've heard that troff/groff have largely been replaced by TeX. Is this true? The only thing that I know actually used troff nowadays is manpages. Is this also true? If not, what are some other uses?
13
votes
7answers
5k views

How to sort (by whatever key) BibTex entries in `.bib` file?

I work with LaTeX and do versioning with Git. For bibliography management I use Mendeley. The problem is that each time Mendeley synchronizes it's .bib exports, they are in different order, what ...
11
votes
1answer
3k views

apt installing more packages than specified as dependencies

I was trying to install texmaker from the repository. For installing the texlive I followed the steps described here. For this the control file I used is this. It has the file texlive-binaries in it. ...
11
votes
1answer
3k views

generate a hyperlinked table of contents and insert into existing PDF

I have an existing PDF (without any corresponding source file), and a text file which is a list of items referencing sections within the PDF file, along with a page number for each item. I would like ...
10
votes
1answer
3k views

How to compile a Latex document on NixOS?

I normally use pdflatex to compile latex documents, but on NixOS I do not see that pdflatex is available to install via $ nix-env -i pdflatex. $ nix-env -qa pdflatex error: selector ‘pdflatex’ ...
8
votes
4answers
25k views

Question about using pdflatex on RedHat in CentOS

I am a novice in using Linux systems. I was given an assignment of writing a document using LaTeX and converting the file into a pdf file to submit. So I tried using my CentOS to do so. The version ...
8
votes
2answers
6k views

yum require an older version of a package as dependency

I have installed TexLive 2012 via the official site and want to install epydoc which depends on an older version. However, when I try to install epydoc which depends on texlive, I get the below error....
6
votes
2answers
3k views

How to re-run vim auto-indentation on a tex file?

I have a LaTeX source file with its indentation messed up. I am looking for a way to force vim (may be through one of vim-latex-suite commands) to re-run the automatic indentation commands over the ...
5
votes
1answer
9k views

Yum installation of package specific modules

I was playing around with texlive package recently and found out that there is a way to install tex style packages with yum install 'tex(package.sty)' command. I've never seen package name was ...
5
votes
1answer
477 views

apt-get doesn't recognize TeX as already installed

I tried installing TexLive by downloading the install-tl-unx.tar.gz file from here and extracting it, then doing sudo perl install-tl and I added the following to /etc/profile: PATH=/usr/local/...
5
votes
1answer
9k views

How to install listings package in Kubuntu for LaTeX?

I installed LaTeX on my Kubuntu with those commands: sudo apt-get install abntex sudo apt-get install texmaker sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended ...
5
votes
2answers
4k views

Shellscript to print a directory tree and files's contents with a nice presentation

I'm trying to write a shellscript which prints a tree-view for a specific directory and it's subdirs to pdf via latex, as well as the titles and contents of all scripts contained within that primary ...
5
votes
1answer
161 views

Perl one liner to find words longer than 63 characters

I have a number of XML files containing sanskrit texts to be converted to tex. Latex has a maximum of 63 characters per word for its hyphenation to work, everything longer than that will not be ...
4
votes
3answers
970 views

How to parse a file to extract 3 digits numbers kept in a “group number”

I am writing a shell script to parse a text file that is extracted from a standardization pdf file. I would like for each test group (identified by Group 0, Group 1... to get the list of test numbers,...
4
votes
1answer
2k views

Easiest method to create pdf from template using command line (without pdflatex)?

For ten years I have been generating billings for me and my wife in this way: Create TeX template with LyX or by hand Using in this source placeholder text Then: cat template | sed s/placeholder1/...
4
votes
1answer
102 views

Transform bibliographic references for use with Latex

I was given a long word document which I have to port to Latex. In the document all citations appear in the classic form with author and year. Something like Lorem ipsum dolor (Sit, 1998) amet, ...
4
votes
2answers
519 views

How to install language support in TexLive on Debian Wheezy?

I'd like to use the babel-croatian package which is available for download on CTAN. But how do I install this package? Or perhaps there is a command-line way?
4
votes
1answer
296 views

Printing Latex source with a2ps

When I try to print out latex source code with a2ps somefile.tex I get error messages from egrep like egrep: Das Ende des angegebenen Intervalls ist nicht gültig which translates to "the end of ...
4
votes
2answers
1k views

How to write this pseudocode where condition

This question is extension of this question about listing questions of directories. I get a problem that I need to understand the original section of the text. Current output where you see the ...
4
votes
1answer
2k views

Installing extra texlive packages in centos

I'm new to CentOS (always used ubuntu and similar) and I am trying to compile some latex code here for the first time. So there's a big list of .sty that are needed. I was able to install some by ...
4
votes
1answer
2k views

vim latex: disable quickfix

How can I disable latex's quickfix feature when editing tex files (having vimlatex installed). But I want to keep it for any other language… Pretty sure this is just a small flag, didn't find it '...
4
votes
2answers
1k views

How do I get GrindEQ (Latex plugin for Word) to work with Word in Wine?

GrindEQ is a plugin for MS Word. It allows one to type LaTeX code into a Word document, then export that into Word's formatting (converts equations into Equation Editor equations, and takes care of ...
4
votes
1answer
2k views

TexLive and RHEL 6 — can I install 2011 *in addition* to 2007?

Our environment is Red Hat Enterprise Linux 6. By default, RHEL 6 comes with a version of TexLive from 2007. A user would like one of the extensions to TexLive ("PDFTex") to be updated. From ...
4
votes
0answers
216 views

Is it possible to have multiple “--unique” windows in Okular?

I am using Okular to view LaTeX documents as I am writing them and occasionally compiling. I used to use Evince but I had a lot of trouble setting up forward/reverse searching, which is easy to do in ...
3
votes
3answers
1k views

Compile all tex files in a directory

If I do pdflatex *.tex in a directory, only one tex file is compiled. Which syntax should I use that all *.tex files in the directory are compiled?
3
votes
4answers
989 views

Extracting pattern from multiple lines

I have a file test.tex with content that is similar to this: \documentclass{scrartcl} \usepackage{graphicx} \title{Test} \author{Author 1, Author 2, Author 3} \begin{document} \end{document} I want ...
3
votes
2answers
916 views

How can I submit the input filename into find exec correctly?

I want to create two pdf output files of a single LaTeX source. One output file is public and the other one (with further information) becomes private. I use a make file, which uses find to grep the ...
3
votes
2answers
152 views

Getting emacs to convert latex on the fly?

What's really nice about posting in the math stackexchange, and other forums, is that you can view the latex symbols right below as you're typing your post. Is there a way to do this in emacs? That is,...
3
votes
2answers
1k views

Insert multiline text into several files via commandline

I want to insert some code into multiple tex files foo*.tex in a directory, one line after \documentclass{.*}. Note that the files have different document classes so the .* is just a symbolic ...
3
votes
1answer
5k views

Export from Libreoffice Calc to a table LaTeX [closed]

I would like to know if there is a way to transform a sheet of LibreOffice Calc to a table LaTeX. Thank you in advance!
3
votes
1answer
765 views

Installing CMU fonts on NixOS

I have figured out that I need CMU fonts to be able to typeset Russian text with XeLaTeX. Under NixOS there is cm-unicode package for it, I have installed it with nix-env -iA nixos.cm_unicode but ...
3
votes
2answers
940 views

Compile Latex source automatically on creation/change

Is it easy to do the following script? I have my LaTeX-documents on /home/jaakko/Documents/LaTeX and its subdirectories. I would like to have a script watch the .tex documents in that directory and ...
3
votes
1answer
2k views

How to save R stargazer(data.frame) output in .tex document?

This thread is the continua of the thread How to save R xtable(data.frame) output in .tex document? but with the package stargazer where the approach proposed for xtable does not work. Code DF <-...
3
votes
1answer
299 views

Using vim-latex with latexmk and evince results in garbled text (GLib-GObject-CRITICAL)

When I compile a latex file in vim with the vim-latex plugin with \ll usinglatexmk, my vim terminal text content gets littered with error messages like the following dispersed through the text: (...
3
votes
1answer
256 views

Syntax highlighting of latex code blocks in ikiwiki

Is it possible to get syntax highlighting for LaTeX code blocks in ikiwiki (just something like it is automatically done in tex.sx)? To avoid misunderstandings: I don't mean math output produced for ...
3
votes
1answer
1k views

Problem opening .dvi files

I would like to know why my Lubuntu 11.10 does not open my .dvi files created with Latex. Please, can anybody help me solve this problem? When I use evince L1.dvi, in the terminal, the evince opens ...
3
votes
1answer
215 views

Any Text File Merge Tools?

When I do version control on text (or latex) files I often run into the problem that the merge/diff tools are all line based while text files are not. This leads to insufficient granularity: every ...
3
votes
2answers
3k views

Is it possible to install all available packages of TexLive in Fedora?

I would like to install all TexLive packages available for Fedora using Yum. All of them have the format texlive-package. Is there a way to do it all without installing one package at a time (there ...
3
votes
1answer
83 views

Calling latex from vim stopped working

When I try to compile my latex document from within vim by issuing: :w|!lualatex % (leaving out the w command does not solve the problem) it compiles but it does not save any files. If I call lualatex ...
3
votes
1answer
318 views

Unable to install Texmaker on Gentoo 3.8.13

I am using Gentoo 3.8.13 x86_64. I am trying to install Texmaker but I am facing some problem. emerge -av texmaker These are the packages that would be merged, in order: Calculating dependencies... ...
3
votes
3answers
567 views

Install using synaptic ignoring dependencies

I was trying to install texmaker a latex editor in my debian system from synaptic. It shows in the dependency list texlive-base, texlive-common. etc as dependencies. But I have already installed ...
3
votes
3answers
2k views

Install pdflatex via SSH on Amazon EC2 instance

I need to install pdflatex on my Linux powered machine (Amazon EC2 instance, didn't decided yet which distribution would be the best so also feel free to give a hint) because I want to connect ...
3
votes
1answer
325 views

Installing Texlive on PC-BSD 8.2

How can I install TexLive on PC-BSD 8.2 and set all the environment variables?
3
votes
1answer
136 views

Printing short latex snippets

Is there a way to quickly (render and) print short latex snippets like single equations? Something similar to echo "Some text" | lpr like make-latex-image "$\frac{some}{equation}$" | command-to-...
2
votes
1answer
90 views

How to write this replacement with condition

I want to replace now within my working directories the word -> with $\to$ if the word is not within verbatim environment. Pseudocode Replace all entriens of -> with $\to$ everywhere else but not ...
2
votes
2answers
119 views

How to Find LaTeX generated PDF files?

I need to find LaTeX Generated PDF files because I want to find those files made by me. I think find could possibly work here. OS X El-Capitan I run Ulrich's proposal find BitTorrentSync/ -exec ...
2
votes
1answer
745 views

Latex expressions shown in a terminal

Is there any way to show a graphic Latex expression in a (textual) terminal? Particularly, can an LXTerminal show the rendering of a Latex equation? Alternatively, is there any terminal emulator that ...
2
votes
1answer
462 views

How can I use a back-reference in place of a filename in sed?

I am trying to use sed to scan through a file and find a pattern, then use part of the matched pattern as a filename and insert the contents of the file at that location. I can get most of it to work, ...
2
votes
2answers
714 views

text color settings in emacs

I just switched to emacs from Vim today so I have no idea what I am doing. How do I change the syntax coloring in Emacs? Everything is green or light green. As you can see, latex tex is dark green ...