I'm using LaTeX and I would like to have vertical rule along left side of page, topmargin to bottommargin, 0.5in from the left edge of the page. Can someone tell me how to do that?
First of all, let me say I'm using LyX, though I have no problem using ERT.
Secondly, what is the most simplest way to draw a simple graph like this in Latex?
I've seen some documents with graphs and I've seen some examples, but I couldn't figure out how to just draw a simple graph - what packages do I need, etc?
Trying to include a source-file into my latex document using the listings package, i got problems with german umlauts inside of the comments in the code.
Using
\lstset{
extendedchars=\true,
inputencoding=utf8x
}
Umlauts in the source files (encoded in UTF-8 without BOM) are processed, but they are somehow moved to the beginning of the word they are contained in.
So
// die Größe muss berücksichtigt werden
in the input source file, becomes
// die ößGre muss übercksichtigt werden
in the output file.
NOTE: since i found errors in my initial setup, i heavily edited this question
How can i change the distance between the bottom of the header and my page body using the fancyhdr package in LaTeX? At the moment they are like this:
Chapter 1: INTRODUCTION
This is text in the introduction
I would like it to be:
Chapter 1: INTRODUCTION
This is text in the introduction
I have tried changing \headheight with no success.
Thanks.
Hi,
I have a problem with Latex -- I don't know how to put mathematical equations and symbols in listings. I use --listings-- package and it's offers great looking listings, but it doesn't allow math symbols in $ .. $. Another package --algorithms-- allows math, but listings doesn't look as good as in --listings-- (the problem is that --algorithms-- demands to get new line after every --if--, --then--, etc.)
Thanks for reply
Michal
Hi, I'm trying to insert a flv video in a latex document. I've tried the following :
\begin{figure}[h!]
\centering
\includegraphics[scale=1]{animation/animation1.flv}
\caption{My animation}
\label{Anim1}
\end{figure}
But it's not working at all ! Does anyone know how to do this ? I would avoid to convert the video because I don't know what kind of codec the reader would have.
I'm using TeXshop, Natbib, Hyperef and two-column layout, and I am getting the following message:
\pdfendlink ended up in different
nesting level than \pdfstartlink
which prevents LaTeX from compiling.
I've searched online for solutions, but most of them are from a few years back, and I don't understand them. Is there anything I should be doing to prevent this error? It appears to be happening due to where the pagebreaks are occurring.
Examples of solutions 1, 2
Hi all,
I have been writhing a rather large document with latex.
Now I would like to list all the figures / tables / algortihms once again at the end of the file so that I can check if they all look the same.
For example, if every algorithm has the same notation.
How can I do this?
I know about \listofalgorithms and \listoffigures but they only list the names of the algorithms or figures and the pages where they are.
Thanks.
Hello,
I want to temporarily change fonts in latex, to arev. Usually, this would work, as described here:
{\fontencoding{T1}\fontfamily{arev} the font is temporarily changed}
it doesnt though, and I think it has to do with the fact that arev is a T1 font. I think I need to specify more?
Thanks in advance for any advice, I appreciate it!
Georg Raba
hi, i have a little question about the verbatim environment in latex.....
my problem is how can i write "\end{verbatim}" inside of a verbatim environment, it supposed that everything inside a verbatim is written just like it looks but this is the string to end the environment, so how can i do this?
I'd like to define a shorthand command for \begin{align*} and \end{align*}. When I write
\newcommand{\ba}{\begin{align*}}
it works fine. But when I write
\newcommand{\ea}{\end{align*}}
latex complains. It looks like it's interpreting it as part of the environment and is not happy with that. Anyone know how to fix this?
I would like to insert notes on the fixes to be done in specific places of my latex document
and maybe have a list of "todos/fixme"
How do you handle this?
Seems one way is to use the fixme package, but I couldn't make it work.
Is Anyone using it?
I'm using LaTeX in conjunction with the listings package and I'm trying to suppress the title of a listing such that it is neither viewed below the actual listing nor in the list of listings.
Setting the option title to title="" or title= does not work. It only leads to the suppression of the listing in the list of listings. However, in the first case "" is displayed below the listing and in the latter one Listing: is displayed below the listing.
Is there a way to fix this?
I'm trying to include a simple glossary to my LaTeX document,
I already searched for something like that on google, but never got it running.
I would like to use glossary or glossaries.
how to write it in the text?
how to print it?
what to execute on which position?
Hi,
I'm trying to add some code in a presentation made with LaTex. I used beamer, added some frames without problems but once I add the listing, I can't compile the presentation anymore.
\begin{frame}{Code}
\begin{lstlisting}
Sample Code
\end{lstlisting}
\end{frame}
The error I pdflatex gave me is:
Package Listings Warning: Text dropped after begin of listing on input line 80.
Is there anything special to add to make it work ?
Thanks
In LaTeX, with \displaystyle , if I do something like:
\sum_{i=0}
then the i=0 appears under a giant Sigma. This is good.
Now, if I do (also in \displaystyle)
\nabla_{x}
the x does not appear under the nabla. It appears to the lower right. How can I make it appear under the nabla instead?
Is it possible to use \ref{chap:conclusion} to refer to the actual name of the chapter instead of the chapter counter in LaTeX? So that I can do this:
See the \ref{chap:conclusion} chapter for more information
See the Conclusion chapter for more information
instead of:
See Chapter \ref{chap:conclusion} for more
See Chapter 6 for more
Thanks
Hey guys,
I'd like to know if there is a way in latex to show the following:
Example 1: problem statement here
Solution: solution here
and wrap that in a box so that it will be noticeable.
Seems like a common enough problem that there should be ready made solutions
If there are any suggestions it would be much appreciated!
The following is an example of what I currently have:
\setcounter{secnumdepth}{3}
\chapter{The Chapter}
\section{First Section}
\subsection{First sub Section}
\subsubsection{First sub sub Section}
which renders something like this:
Chapter 1
The Chapter
1.1 First Section
1.1.1 First Sub Section
1.1.1.1 First sub sub Section
Now unfortunately in LaTeX, I can only go down to a subsubsection (1.1.1.1) but I need to be able to go down further...for example, something like this 1.1.2.1.3. Are there any commands that will allow me to do this?
In Latex, I've created a new command 'changedtext' to mark specifics parts in my document and make it appear blue:
\newcommand{\changedtext}[1]{\textcolor{blue}{#1} }
Is there any easy way to alter the command to have change bars appear next to the text in the resulting PDF?
If not possible, any other suggestion for a visual markup (other than change bars) that would be clear on a black & white printout would be useful as well.
Hi There,
I'm trying to create a glossary using the glossaries package in latex. Is there a way to force all defined terms to appear in the output glossary, even if they are unused in the text? I see this as the equivalent to \nocite for glossary entries.
Cheers,
Ken.
When I include an equation in LaTeX that is enumerated, i.e.
{\begin{equation}
$$
$$ ... \end{equation}
}
The line above the equation (blank space between the text preceeding it and the equation) is huge. How do I make it smaller?
What solutions are there for working on a LaTeX document on both Windows and Linux?
It's a large document, and I will be working daily on both platforms so compatibility is essential if it's two different pieces of software.
Bonus points for a solution that includes easy previewing.
Hey all,
What are some of the pointers that I need to follow if I want to have good quality images in a LaTeX document. These images are mostly screenshots of an software application or flow charts.
Below are two such images.
Flow Chart
Screenshot
Thanx
Ladislav