latex

latex large division sign in a math formula

Hi, I have been looking for an answer for some time now, hope you could give me a quick tip. I have an equation with many divisions inside. i.e: $\frac{\frac{a_1}{a_2}} {\frac{b_1}{b_2}}$ To make it more readable, I decided to change the large fraction into "/" sign. i.e. $\frac{a_1}{a_2} / \frac{b_1}{b_2}$ The problem is that th...

How to best manage multi-lingual presentations?

I have a presentation done in Latex+Beamer, currently in french. I also need to make the same presentation, with the same structure, in dutch. I'd like to maintain the presentation in one file, so that if I want to change the structure of it, I only have to do it in one place. What's the best way to put the translations outside of the pr...

TeX to html converter

What is the best way to convert latex document with PGF & TikZ images to html files? ...

LaTeX lstlisting not highlighting keywords when basic style is ttfamily

Hello, I'm working on a LaTeX document and using lstlisting to display my Java source code. My setup looks like this: \lstset{ basicstyle=\ttfamily, keywordstyle=\bfseries, language=Java, frame=single, aboveskip=11pt, belowskip=11pt, breaklines=true, breakatwhitespace=false, showspaces=false, showstringspaces=false } The k...

LaTeX - Making a lighter version of text, like anti-bold?

I'm making a LaTeX document for someone. A certain piece of text looks "bold" for them, even though I'm not using the \textbf command. It's just a normal default LaTeX font. Is there any command to make a 'lighter version', i.e. make the text lighter, thinner? Something that looks to normal text, what normal text looks to bold? ...

LaTeX support with Movable Type 5?

Is there latex math support with movable type 5? ...

How to rotate table-headline in Latex table

Hi, is there a way to rotate the "Demo 1", "Demo2" and "Demo 3" headlines 90° in the following LaText table? \documentclass[a4paper,twoside,10pt]{report} \begin{document} \begin{tabular}{|l|l|l|l|} \hline & Demo1 & Demo2 & Demo3 \\ \hline Person 1 & x & & \\ \hline Person 2 & x & & x \\ \hline Person 3 & x & x & \\ \hline Pe...

How to get the value of the document title in latex?

I'm wondering how I can get the document title in latex, for use elsewhere in the document. I just want to be able to be able to echo it. ...

change to letter size on teXnicCenter & MikTex

this is a very stupid question... but how come teXNicCenter and MikTex always generate an A4 size pdf paper? I reinstalled both MikTex and TecNixCenter and I made sure that I selected "Letter" to be my default paper size. nothing changes.. :| I need a letter size paper not A4. ...

latex - including a landscape pdf

Having no end of trouble including a large landscape pdf in a portrait .tex document (using pdflatex). When it does show up, only the leftmost end of the pdf shows up, now matter how small i make the scale. And i cant seem to get it to show in landscape mode at all... Is anything wrong with the code i am using? \begin{landscape} \incl...

Detect LaTeX class name

I'm working on a LaTeX package which might need to do some things differently depending on the class that's being used. I'm wondering if there's a way to auto-detect or test the document class. One could certainly look up the class files and test for the existence of a specific macro defined by that class, but is there a smarter way? ...

How do I use TrueType fonts with LaTeX

I need to use a font family in my LaTeX documents, that is available as 18 .TTF (TrueTypeFont) files. Where do I have to copy the files in my MiKTeX 2.8 installation? How Do I make the fonts to available for LaTeX? I usually use pdfLaTeX. I read in Truetype-Fonts in LaTeX that TTF fonts are available without creating all the .TFM file...

Writing a regex in Latex

Hello everyone. In a Latex Report I am making I have to write a regex. There is only one in the whole report, so I don't really want to use packages and so on. This is the regex I am talking about: ^\"((\w|\s)+)\"$ I came up with this for Latex: \grave{ }\backslash\"'((\backslash w\| \backslash s)+)\backslash \"' \backslash \$ ...

latex elongated parentheses

How to make the first matrix look like the latter? The code of the first matrix is: $$F(x)=\left( \begin{array}{cc} \frac{x}{2} & 0 \\ 0 & x^2\\ \end{array}\right)$$ ...

latex undefined control sequence with tableofcontents

I was using \documentclass{amsmath} for awhile with no issues, but I recently wanted to switch to the normal \documentclass{article} because I thought it looked nicer. However, now my \tableofcontents command produces this error: ! Undefined control sequence. <argument> \tocsection {}{1}{Purpose} l.1 ...ne {secti...

How to create web pages or program with LaTeX math style?

I just wondering, how can write web applications or web pages using LaTeX-styled math? please don't refer to LaTeX2png. i want a text formation tool or script, like mathoverflow. Thanks. ...

Sans-serif math with latex in matplotlib

The following script: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as mpl mpl.rc('font', family='sans-serif') mpl.rc('text', usetex=True) fig = mpl.figure() ax = fig.add_subplot(1,1,1) ax.text(0.2,0.5,r"Math font: $451^\circ$") ax.text(0.2,0.7,r"Normal font (except for degree symbol): 451$^\circ$") fig.savefig('te...

Latex letter: Address right aligned

Hi, I am using Latex letter class, and would like the address to be right justified. The default is for it to be in a right aligned block, justified to the left. I am happy to change the letter.cls file, but haven't been able to figure out the right way to do it. I have tried using sclttr2 instead but there are too many variables for...

problem in Latex

Hellom I have a problem in Latex: if i have: \begin{enumerate} \item Alert - Mesaje de avertizare, erori, etc. \item Form - Permite crearea de ecrane compuse din alte componente, cum ar fi imagini (Image) sau articole derivate din Item (ChoiceGroup, CustomItem, DateField, Gauge, ImageItem, Spacer, StringItem, TextField). \item List...

How to escape/strip special characters in the LaTeX document?

We implemented the online service where it is possible to generate PDF with predefined structure. The user can choose a LaTeX template and then compile it with an appropriate inputs. The question we worry about is the security, that the malicious user was not able to gain shell access through the injection of special instruction into l...