Search found 17 matches

by vita001
Thu Jun 07, 2012 1:14 am
Forum: Text Formatting
Topic: normal font in table of content
Replies: 1
Views: 3251

normal font in table of content

After some googling, I find an alternative approach that uses the package tocloft, I almost have what I want except one thing --- the \dotfill only fills part of the line for some reason. Any help is appreciated.


\documentclass[12pt]{report}

\usepackage{amsmath,amsthm,amssymb,latexsym,amscd ...
by vita001
Wed Jun 06, 2012 11:19 pm
Forum: Text Formatting
Topic: normal font in table of content
Replies: 1
Views: 3251

normal font in table of content

Hello,
Latex uses bold font for Chapter's names in the table of content. How can I change it to normal font? I did some google, and it seems that the memoir class can do it. Is there a way to do it without using memoir class? I write my thesis using report class and I am afraid of switching to ...
by vita001
Sun May 27, 2012 4:41 am
Forum: General
Topic: numbering in the enviroment algorithm
Replies: 1
Views: 2607

numbering in the enviroment algorithm

Hi,
algorithmicx package provides a way to break a algorithm into two parts(the example code is attached) However, the environment algorithm will number these two parts separately (Algorithm 1 and Algorithm 2). How can I also number Part 2 also as Algorithm 1 not Algorithm 2. Thanks ...
by vita001
Mon Apr 09, 2012 7:31 pm
Forum: Graphics, Figures & Tables
Topic: Aspect Ratio of included Graphics File changes
Replies: 3
Views: 6633

Re: Aspect Ratio of included Graphics File changes

Thank you for the quick reply.
It turns out that it's not a problem of latex. I connected my macbook to a wide screen monitor and the aspect ratio is changed for some reason.
by vita001
Mon Apr 09, 2012 1:55 am
Forum: Graphics, Figures & Tables
Topic: Aspect Ratio of included Graphics File changes
Replies: 3
Views: 6633

Aspect Ratio of included Graphics File changes

Hi,

the image is 640x640 (the image file is attached.), and it contains a circle. But when I insert the figure using the following code, the circle looks like an elongated ellipse.
\documentclass[12pt]{report}
\usepackage{graphics}
\usepackage{graphicx}

\begin{document}
\includegraphics[scale=0 ...
by vita001
Tue Feb 21, 2012 5:31 am
Forum: Document Classes
Topic: beamer | Avoid wobbling Problem
Replies: 1
Views: 2292

beamer | Avoid wobbling Problem

Hi,

I tried the [t] option in \begin{frame}[t], it helps but cannot avoid wobbling completely.
I used to come across a command which can avoid the wobbling problem completely by taking some text size as input parameters. But I forget which one. Anyone can remind me? Thanks.
by vita001
Thu Feb 16, 2012 1:51 am
Forum: Text Formatting
Topic: setstretch and a blank line
Replies: 1
Views: 2811

setstretch and a blank line

Hi, I notice that setstretch only works when there is a blank line following the paragraph. In the following example, setstretch has no effect if we delete the blank line above setstretch{1}. Why it is so?


\documentclass[compress]{beamer}
\usepackage[english]{babel}
\usepackage{setspace}
\begin ...
by vita001
Sat Jan 28, 2012 3:35 am
Forum: General
Topic: About the symbol @ | learn to write LaTeX package
Replies: 3
Views: 5954

About the symbol @ | learn to write LaTeX package

I read the "latex for class and package writers". It's a good but short introduction. I try to look at some .cls files to better understand how latex packages/classes work.

I encountered the follow code
\advance\textwidth-\sectionwidth

I try to look up what \advance does, but I get very little ...
by vita001
Fri Jan 27, 2012 6:18 am
Forum: General
Topic: About the symbol @ | learn to write LaTeX package
Replies: 3
Views: 5954

About the symbol @ | learn to write LaTeX package

Hi,
The symbol @ is used everywhere in .cls files. But I cannot find a documentation about its usage. Anyone can give me some links to the documentation? I also want to learn how to write a Latex package. Which books/links are good starting points?
Thanks.
by vita001
Tue Mar 29, 2011 6:45 am
Forum: Document Classes
Topic: doublespacing in Beamer
Replies: 1
Views: 12339

doublespacing in Beamer

I solved the problem but I don't know why.

\begin{frame}
\frametitle{title}
\setstretch{1.667}
We have
$$A+B+C=D$$
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla ...