由买买提看人间百态

topics

全部话题 - 话题: usepackage
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
S**I
发帖数: 15689
1
来自主题: TeX版 - 问两个footnote的问题
没找到如何redefine \author里的footnote symbol,俺是这么解决的:
\usepackage{manyfoot}
\DeclareNewFootnote{B}[arabic]
......
\author{Author1\footnotemarkB{},...,AuthorN\footnotemarkB{}}\footnotetext[1]
{XXX1}...\footnotetext[N]{XXXN}
......
\addtocounter{footnote}{N}
这个方法比较笨拙,本版大牛应该有更好的办法。
k***g
发帖数: 7244
2
\usepackage[onehalfspacing]{setspace}
j*********g
发帖数: 36
3
来自主题: TeX版 - 大家都用什么做poster
\usepackage{geometry}
我不觉得 poster 有什么特殊的。
T*******n
发帖数: 493
4
来自主题: TeX版 - 一个latex 公式问题
\usepackage{amsmath}
\begin{equation}
\begin{split}
Y &\phantom{=} \null \\
&= X+E \\
&= Z1+Z2+E
\end{split}
\end{equation}
BR
发帖数: 4151
5
来自主题: TeX版 - 怎样引用网址?
谢谢。我就usepackage{url},然后在网址前加\url.
q******c
发帖数: 16
6
来自主题: TeX版 - 关于底边边距的问题
文件的头是:
\documentclass[12pt, titlepage, openany, reqno]{amsbook}
\usepackage{amsmath, amsfonts,amsthm, amssymb, amscd, graphicx, subfigure}
行间距全部设置为两倍行距,用的是\renewcommand{\baselinestretch}{1.66}
编译后出来的结果很奇怪,每页的底边距都多多少少不一样,看起来很糟糕。请教高人
指点一下该怎么改。
谢谢!
A*******e
发帖数: 108
7
来自主题: TeX版 - 关于底边边距的问题
试试 \usepackage[bottom=xxcm]{geometry}
g*********r
发帖数: 124
8
\usepackage{tocloft}
\renewcommand{\cftfigfont}{Figure\space}
a**e
发帖数: 5794
9
来自主题: TeX版 - MIKTEX2.7有什么特别的么?
编译的时候用xelatex,出来的PDF内嵌TrueType字体。
另外XeTeX还built-in支持unicode。
\documentclass{article}
\usepackage{fontspec} % provides font selecting commands
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier}
\begin{document}
\noindent Hello, World!
\ \\
\textsf{Hello, World!}
\ \\
\texttt{Hello, World!}
\end{document}
r****t
发帖数: 10904
10
lshort 1.8 "Big projects"
\usepackage{syntonly}
\syntaxonly
T*******n
发帖数: 493
11
来自主题: TeX版 - 紧急求助latex问题
Have you tried \usepackage{fancyhdr}?
T*******n
发帖数: 493
12
来自主题: TeX版 - 公式编号问题
\documentclass{minimal}
\usepackage{amsmath}
\begin{document}
\begin{subequations}
\begin{alignat}{2}
x&=a+b, & \qquad & \text{if $abc$} \\
y&=c+d+c, & & \text{if $abcde$}
\end{alignat}
\end{subequations}
\end{document}
T*******n
发帖数: 493
13
来自主题: TeX版 - align的问题
Try this; use \quad instead of \qquad if you want half the space.
\documentclass{minimal}
\usepackage{amsmath}
\begin{document}
\begin{alignat}{2}
x&=a+b, & \qquad & \text{if $abc$} \\
y&=c+d+c, & & \text{if $abcde$}
\end{alignat}
\end{document}
a**e
发帖数: 5794
14
来自主题: TeX版 - 文献引用格式问题
\usepackage[compress]{natbib}
r****t
发帖数: 10904
15
3. use
\usepackage{syntonly}
\syntaxonly
to compile and only check syntax.
4. split your big tex file into small ones, and use \include to only compile
the chapter you are writing.
T*******y
发帖数: 6523
16
Thank you very much for your response.
well, I use MikTex and WinEdt. there does not seem to be a cure. :-(
By the way, why would people use "\usepackage{syntonly} \syntaxonly"? What's
the advantage of compiling the file while not generating the output? What
can be done on the compiled file then?
r****t
发帖数: 10904
17
http://nwalsh.com/tex/texhelp/bibtx-8.html
这个上面说的是骗人的?
url, doi 什么的现在都是 optional 的了。
我的 bib file 里面有 doi, url entry, 本来应该属于 ignored field, 不应该出现在最后的 References 里面。现在这些都出现在 References 里面每个条目里面了,用的是
\usepackage{natbib}
\bibliographystyle{plainnat}
r****t
发帖数: 10904
18
来自主题: TeX版 - 参考文献格式
1) can be achieved by \usepackage[sort&compressed]{natbib}
^^^ should be sort&compress
But you probably need to run "latex makebst" to get a good format.
2) if using natbib, then \citep{xxx} will give you that.
b*****s
发帖数: 61
19
本人是个新手,有两个问题想问问各位大佬,请大家不吝赐教,谢谢!
1。 本人正在用学校的模板写毕业论文,可是转成DVI想看看劳动成果时发现目录表里
的每一行下面都有一个横线,所有的文献引用和图片引用下面也有黑线。转成pdf后发
现横线没了,但是都变成了一个浅蓝色的框子,打印出来却消失了。请问各位大佬这是
怎么一回事呢?是模板的问题还是我自己哪儿没整好?
2。 还有一个问题,比较罗嗦,不好意思,我抄了别人下面的一部分text,编译过不去
,说我“missing \begin{document}", 请问是什么原因呢?而我把pdftitle到
pdfkeywords四行删掉以后,倒是勉强能过去,但中间停下来告诉我“option clash
for package hyperref”,我回车就能通过了。是不是哪儿有冲突了呢?
\usepackage[dvips,ps2pdf,
pdftitle={abcde},
pdfauthor={abcde},
pdfsubject={abcde},
pdfke
h******s
发帖数: 176
20
来自主题: TeX版 - [合集] 插图一问
☆─────────────────────────────────────☆
backstepping (老和尚想回家过年) 于 (Mon Sep 15 21:24:10 2008) 提到:
插图用 \usepackage{epsfig} 这个包
然后插图
\centerline{\protect{\psfig{figure=wahaha.eps,height=1.7in,bbllx=0bp,bblly=
0bp,bburx=400bp,bbury=285bp,clip=}}}
{\centerline {Fig. 1. \ \ wahaha}
这个fig.1怎么变成自动排序,而不是我这样的强制输入fig.1
☆─────────────────────────────────────☆
kkff (克复) 于 (Wed Sep 17 01:53:39 2008) 提到:

The official way is to wrap you stuff in the figure environment
\begin{figure}
\centerline{\prot
j***r
发帖数: 69
21
来自主题: TeX版 - pict2e.sty 求助
使用pict2e包,却遇到这样的错误,请教如何解决。
\usepackage{pict2e}
编译,提示安装,点install,然后看到:
! Latex Error: File 'pict2e.sty' not found.
......
Enter file name:
j***r
发帖数: 69
22
来自主题: TeX版 - pict2e.sty 求助
我的问题后来用eepic包解决了,没用pict2e包。
\usepackage{eepic}
e*****m
发帖数: 320
23
我在写作业,肯定是一个问题对应一个图片,怎么能禁止图片浮动到别的地方啊?
我用的语法格式:
\begin{figure}[!h]
% Requires \usepackage{graphicx}
\includegraphics[width=0.9\textwidth]{../Figures/Fig4.eps}\\
\caption{Filtered signal via FOR iteration}\label{F4}
\end{figure}
e*******e
发帖数: 248
24
find \usepackage{endfloat} in your document, and comment this line out.
t**********h
发帖数: 100
25
可是我的文件里没有这个命令呀!“\usepackage{endfloat}”
s*m
发帖数: 9
26
\usepackage{ol2}就是模板啊
Z**0
发帖数: 1119
27
来自主题: TeX版 - THESIS格式求教
try this package
\usepackage[bf,small,indentafter,pagestyles]{titlesec}
a**e
发帖数: 5794
28
用那个eps就行吧
\usepackage{graphicx}
\includegraphics[scale=0.8]{filename.eps}
a**e
发帖数: 5794
29
来自主题: TeX版 - 请问latex有无注释环境?
\usepackage{verbatim}
\begin{comment}
\end{comment}
j*****2
发帖数: 48
30
急救!latex winedt下cjk不能通过
完整完装了miktex 2.7 但是在latex下能通过下面的编绎:
\documentclass[12pt]{article}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GB}{song}
±¾ÎÄʹÓÃ
ÖÐÎÄËÎÌ壬This article
uses Chinese Song Ti characters¡£
{\CJKfamily{kai}ÕâÒ»&
frac34;&a
t**i
发帖数: 688
31
THE NATBIB statement:
\usepackage[authoryear,square]{natbib}
THE LOG:
[28] [29] (thesis.bbl
! LaTeX Error: \newblock undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
l.1 \begin{thebibliography}{}
THE BBL FILE (an excerpt) generated by MikTeX 2.7:
\begin{thebibliography}{}
\bibitem[Johnson and Jane, 1998]{Johnson1998}
Johnson, L. and Jane, J., 1998.
\newblock paper title one.
\newblock {\em Nature}, \textbf{543}:345--347.
\bibitem[Apple
g*********r
发帖数: 124
32
来自主题: TeX版 - 怎么自己编号定理?!!
给一个很土的方法:
\usepackage{ntheorem}
\theoremsymbol{\ensuremath{\heartsuit}}
\theoremindent0.5cm
\theoremnumbering{arabic}\theoremseparator{:}
\theoremstyle{plain}
\newtheorem*{SpecialNumberLemma}{Lemma 1\textsuperscript{$\prime$}}
\begin{SpecialNumberLemma}[Special Theorem]\label{somelabel} This is a
customized Lemma
1\textsuperscript{$\prime$}.
\end{SpecialNumberLemma}
g*********r
发帖数: 124
33
\usepackage{amsmath}
\begin{equation*}
f(x)=\left\{\begin{aligned}
B'&=-\partial\times E,\\
E'&=\partial\times B - 4\pi j,
\end{aligned}
\right.
\end{equation*}
e******i
发帖数: 179
34
好像是
texfonts
preamble里面加个 \usepackage{texfonts}试试看
h**********c
发帖数: 4120
35
来自主题: TeX版 - 以下问题请教各位天才
以下问题请教各位天才
大家写thesis一般用哪个latex?我用fedeora下命令行latex,和vista 下的
texniccenter
总有一些问题,试来试去没有理想的方案。
thesis 是以前同学的template,不能改了,
如果是应用软件的问题,能否推荐 一个好一点的package.
具体 的问题。
1. 在.tex 文件中 使用 \usepackage[dvipdfm,bookmarks]{hyperref}
在fedora 下 latex *.tex 生成的 dvi文件 pagesize 正确,图也正确,问题是因为有
.png文件, 不能生成.ps 文件, 不能 打印。
在kdvi, export as pdf文件, pagesize 不对, pagemargin 不是大了就是小了,
手动设置pagesize也没有用。
用texniccenter,.ps file里面的png 图片没有颜色。
我现在的办法之能是生成dvi文件然后到windows 下用yap 打印。如何能既包括
pngfigures,又可以自由地生成pdf 和ps 文件?
2. 在.tex 文件中
g*********r
发帖数: 124
36
来自主题: TeX版 - \xleftrightarrow?
\usepackage{amsmath}
\makeatletter
\def\ExtendSymbol#1#2#3#4#5{\ext@arrow 0099{\arrowfill@#1#2#3}{#4}{#5}}
\makeatother
\newcommand\myArrow[2][]{\ExtendSymbol{\leftarrow}{-}{\rightarrow}{#1}{#2}}
$A\myArrow[A^2=B^2]{A^2=A^2+B^2+C^2}B $

\
w*****g
发帖数: 1443
37
beamer好像不认识这个命令:
\usepackage{setspace}
\doublespacing
难道只能每行之间手动加上
\vspace{10pt}
吗?
哪位有办法请指点一下,多谢多谢!
b**m
发帖数: 34
38
你好,非常感谢!
根据帖子上的提示
\usepackage{ragged2e}
\justifying 就可以了
a**e
发帖数: 5794
39
来自主题: TeX版 - natbib 问题
\usepackage[dvipdfm]{graphicx}
...
\includegraphics[bb=0 0 540 405]{picture.png}
latex命令可以接受png,只是需要指定bounding box。
编译的时候用latex和dvipdfmx
g*********r
发帖数: 124
40
\usepackage[sort&compress]{natbib}
\renewcommand{\bibnumfmt}[1]{}
S**I
发帖数: 15689
41
\usepackage{titlesec}
\titleformat{\section}{\normalsize\bfseries}{\thesection}{1em}{}
a**e
发帖数: 5794
42
来自主题: TeX版 - latex图片位置问题
\usepackage{endfloat}
S**I
发帖数: 15689
43
\usepackage{xcolor}
\colorbox{gray}{a piece of text}

but
S**I
发帖数: 15689
44
\usepackage{amsmath}
\numberwithin{equation}{section}

.2
c*******n
发帖数: 32
45
来自主题: TeX版 - Shaded Box Around Text
Hi,
I am trying to put a shaded box around some text but I can't seem to do
it... Can someone help me? I tried using the "shadethm" package but
can't figure out how to get un-numbered theorems:
\newshadetheorem*{shadequote}
doesn't work, LaTeX compiler complains that \* is already defined.
I also found this piece of code online but can't figure out how to get
it to work either:
\usepackage{color,calc}
\definecolor{shade}{gray}{0.8}
\newenvironment{myshadedbox}[1][]%
{
%\set
a**e
发帖数: 5794
46
来自主题: TeX版 - Shaded Box Around Text
我看不懂你的例子,就自己写了一个。
\documentclass{article}
\usepackage{color,calc}
\definecolor{demo@bgcolor}{gray}{.8}
\let\oldfboxsep\fboxsep
\newsavebox{\mybox}
\newenvironment{shadedbox}{
\noindent
\begin{lrbox}{\mybox}
\begin{minipage}[c]{.945\textwidth}
}{
\end{minipage}
\end{lrbox}%
\setlength{\fboxsep}{8pt}
\colorbox{demo@bgcolor}{\usebox{\mybox}}
\setlength{\fboxsep}{\oldfboxsep}
}
\begin{document}
\begin{shadedbox}
blar
\end{shadedbox}
\end{document}
s*******n
发帖数: 493
47
谢谢!
需要\usepackage{caption}吗?
g*********r
发帖数: 124
48
\usepackage[breaklinks=true]{hyperref}
g*********r
发帖数: 124
49
来自主题: TeX版 - 如何输入下面字符?
\usepackage{amssymb,graphicx}
\reflectbox{$\angle$}
a**e
发帖数: 5794
50
来自主题: TeX版 - MikTex与MetaPost
eps可以用\includegraphics命令插入到.tex里,需要\usepackage{
graphicx}。
常用的三个绘图工具中,只有tikz/pgf可以直接写到.tex里,metapost
和pstricks都需要另外生成图形。
mpost是个命令行命令,在miktex的bin目录下,估计另一个可执行文件
mp是它的马甲。TeXnicCenter也许可以给这个命令定制一个按钮。

是吗?
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)