MediaWiki allows one to embed TeX math code that is rendered into images and posted into the Wiki pages. Is this safe? If one allows untrusted users to input TeX programs to be executed by an interpreter running in a web server, does it open the server up to being hacked by using the TeX interpreter to read files from the server's disk...
I am using LaTeX and in some cases have multiline footnotes.
When I use a two-column format and especially when the reference to a footnote is low in the column, LaTeX will often split the footnote in half: it starts in the original column, but then continues under another column (sometimes in another page), which is very distracting.
...
Two questions:
1) Does LaTeX allow one to (re)define commands within a \newenvironment? I've tried using \renewcommand, \newcommand and \def in the before declaration but to no avail.
2)How would one redefine \item when creating a new list environment?
I've created a new type of list environment from scratch using \newenvironment whil...
Pursuant to this question:
Redefining Commands in a New Environment
How does one redefine (or define using \def) a macro that uses parameters? I keep getting an illegal parameter definition in \foo error. Since I require custom delimiters, I can't use \newcommand or \renewcommand.
A general form of my code looks like this:
\new...
I edited the question after David Hanak's answer (thanks btw!). He helped with the syntax, but it appears that I wasn't using the right function to begin with.
Basically what I want is to let the compiler ignore multiple definitions of a certain label and just use the first. In order to do that, I thought I'd just do something like this...
My LaTex file:
\maketitle
\begin{abstract}
For over a century, fingerprints have been an undisputed personal identifier.
Recent court rulings have sparked interest in verifying unique...
\end{abstract}
I would like to a similar titlepage as here.
My document class is article. This is the beginning of my file.
...
Although related to this question about LaTeX being used outside mathematics and academia, I'm specifically wondering if anyone uses or is familiar with anyone that uses LaTeX for generating any type of documentation relating to software. If so, could you say whether or not you like LaTeX and the purposes for which you use it? Thanks.
...
My document class is article. This is the beginning of my file.
This question is related to the post.
...
Here's my problem. I have a bunch of figures already written in a LaTeX document, and I'd like to reuse them for a poster. The code for the figure looks like:
\begin{figure}[htp]
\begin{center}
\subfigure[Figure A]{\label{fig:Sample-a}\includegraphics[scale=5]{Image1.png}}
\subfigure[Figure B]{\label{fig:Sampple-b}\includ...
Hello,
I have some code I write inside the verbatim environment. Sometimes, the lines are too long and the generated pdf looks ugly - the text row passes over the right margin. What can I do to automatically break these long lines? Is there anything better than the verbatim env?
Thanks,
Lucian
...
I have a definition
\newcommand{\arnold}{Arnold Schwarzenegger}
when I refer to it by
\arnold is a
it is rendered as
Arnold Schwarzeneggeris a
In order to have a space in front of "is" I would need to write
\arnold\ is a
Is there another and shorter way?
...
Given LaTeX likeso:
\section{Heading}
Here is some text after the heading.
How could one prevent the Heading from showing up at the very bottom of the page?
In other words, how could one prevent a page-break after Heading and before the following text?
This seems to be happening in a document that I've got. If there's more informat...
The following latex does not compile because of the "[" after the "\item". I presume it is because LaTeX expects a "]" as per the "\item[option]" syntax. However, I just want to insert the "[" character into the text as the first character of the enumerated item.
\documentclass[oneside,12pt]{article}
\begin{document}
\begin{enumerate}...
I'm currently looking at different solutions getting 2 dimensional mathematical formulas into webpages. I think that the wikipedia solution (generating png images from LaTeX sourcecode) is good enough until we get support for MathML in webbrowsers.
I suddenly realized that it might be possible to create a Google Charts API equivalent fo...
The picture is at the position of the header:
http://dl.getdropbox.com/u/175564/%20latex1.png
Code:
\begin{figure}
\subfloat[A gull]{\label{fig:gull}\includegraphics[width=0.15\textwidth]{p1.png}}
\subfloat[A tiger]{\label{fig:tiger}\includegraphics[width=0.15\textwidth]{p2.png}}
\caption{Pictures of animals}
\label{f...
I have been trying to find a way to easily drop a nice horizontal rule into a LaTeX document. \hline just makes a line across the page. It would seem that some package must provide something that is maybe half a page wide, with little bedknobs on the ends or something to act as a nice section marker for paragraphs.
Any ideas? Or am I...
Semantically, I want an itemized list, but visually I just want some space. How can I hide the bullets?
...
My intuition was
Lorem ipsum\footnote{long footnote
that spans a whole
bunch of
lines.
}
But regardless of where I put the { and } in relation to the footnote text, I get the following error:
Latex Error: ./mydoc.tex:142 Package inputenc Error: Unicode char \u8:― not set up for use with LaTeX.
...
I have a section:
\section{Introduction} \label{sec:introduction}
I'd like a link to the section where the link text is the name of the section. I can use hyperref:
The \hyperrf[sec:introduction]{Introduction} introduces the paper.
But that requires repeating the section title ("Introduction"). Is there a way to grab that? ref yi...