How to change the space between the itemize items in latex? [closed] - latex

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
How to change the space between the itemize "items" in latex so that I can continue to use the "itemize" and "item" tag without needing to redefine any new tags?
Thank for your help!

You could set the separating space inside an itemize environment.
\begin{itemize}
\setlength{\itemsep}{5pt}
\item Item1
\item Item2
\end{itemize}
Alternatively, afaik, you would need to create your own environment.

Related

Turn off numbering of sections in LaTeX [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I tried to turn off numbering of the sections in my LaTeX documten using \renewcommand\thesection{}.
The numbering did disappear but the title of the section is still indented.
The «Title of the section» should be at the point where the «3» used to be.
How can I do this?
It is much simpler: use the \section*{Some Text} command:
\documentstyle[12pt]{article}
\begin{document}
\section*{Some Text}
Lorum ipsum ...
\end{document}
yields

How to delete text in all occurences of a specific tag in Latex [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
In my latex document I have use the tag \sout , to strike out some texts, in many places. Is there a one-shot way to delete the text in all the occurrences of the tag along with the tag ?
You could redefine the way \sout works by including the following in your document preamble:
\renewcommand{\sout}[1]{\unskip}
Here's an example illustrating the effect:
\documentclass{article}
\usepackage{ulem}% http://ctan.org/pkg/ulem
\begin{document}
Here is some \sout{text} stuff.
\renewcommand{\sout}[1]{\unskip}
Here is some \sout{text} stuff.
\end{document}
If you're using an editor that allows for searching with regular expressions, then you could do a find for the regular expression \\sout\{[^\}]+\} (note that this is untested) and replace with an empty string or space.

margins of book class in latex [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would know which are the margins (in meters) top,right,bottom and left, default assigned for bookclass. there is a command or a way to know them?
It depends on whether you want to include the header/footer and possibly even if you use twoside document. Perhaps the following minimal working example can be a start:
\documentclass{book}
\usepackage{layouts}% http://ctan.org/pkg/layouts
\begin{document}
\pagevalues
\end{document}
uses the layouts package to produce
All units are printed in points by default, and there are 0.0351459 points per cm. Note that LaTeX does not use metres as a valid length.

Tweaking \autoref to behave somewhat like \vref [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I would like to modify the \autoref command in the following way: if the \autoref command and the label are on the same page, it behaves like \autoref* (i.e., no hyperlink). Else, it behaves usually.
Thanks,
Vishnu
If you can use \myautoref instead of \autoref, the following will work as you wished:
\documentclass{article}
\usepackage{lipsum}
\usepackage[pdftex,colorlinks]{hyperref}
\makeatletter
\def\my#setref#1#2#3{%
\ifx#1\relax\protect\G#refundefinedtrue
\else\expandafter#2#1\fi}
\def\pagenum#1{\expandafter\my#setref\csname
r##1\endcsname\#secondoffive{#1}}%
\def\myautoref#1{\def\refnum{\pagenum{#1}}%
\ifnum\refnum=\thepage\relax\autoref*{#1}%
\else\autoref{#1}\fi}
\makeatother
\begin{document}
\section{First}\label{first}
\lipsum[1-3]
\myautoref{first}
\lipsum[4-8]
\myautoref{first}
\end{document}
I had to solve a similaire problem and found something shorter (more easy to understand for me):
\usepackage{ifthen}
\newcommand{\myautoref}[1]{
\ifthenelse%
{\equal{\pageref{#1}}{\thepage}}%
{\autoref*{#1}}%
{\autoref{#1}}
}

How to hide the page number in LaTex on first page of a chapter? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How to hide the page number on first page of a chapter in LaTeX.
\thispagestyle{empty}
You could also use the titlesec package to get tremendous control over each chapter:
% This is done with the titlesec package
\titleformat{\chapter}[display]
{\normalfont\Large\filcenter} % {fmt}
{\thechapter.\ } % {label}
{1pc} % {sep}
{\vspace{-1in}\enlargethispage{-0.5in}\thispagestyle{empty}} % {before}

Resources