由买买提看人间百态

topics

全部话题 - 话题: bfseries
(共0页)
z***i
发帖数: 8285
1
来自主题: TeX版 - tex问题
\documentclass[a4paper,11pt]{article}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[colorlinks=true]{hyperref}
\usepackage{colortbl}
\usepackage{hyperref}
\usepackage{extramarks}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage{eso-pic}
\usepackage{ifpdf}
\usepackage{svgcolor}
\usepackage{booktabs}
\usepackage{amssymb}
\pagenumbering{arabic}
\hypersetup{urlcolor=blue}
\definecolor{light-gray}{gray}{0.86}
\setlength{\paperwidth}{597pt}
\setlength{\paperh... 阅读全帖
z*****n
发帖数: 7639
2
来自主题: TeX版 - 一个对齐的问题
根据要求,我得用book格式写个report。但是章节开始页
要用这个格式:
1. (my chapter title)
1.1 (my section title)
在book.sty里面的default设置是这样的:
Chapter 1
(my chapter title)
在book.cls里面,it is writen so
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
b*******h
发帖数: 56
3
谢谢版主的关心,找到了解决方法
\def\beforesep{-0.5in}
\def\aftersep{0pt}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{\beforesep}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\large\centering\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 0\p@
\fi
\fi
\interlinepenalty\@M
\large \centering\bfseries #1\par\nobreak
\vskip \aftersep
}}
\def\@makeschapterhead#1{%
\vspace*{\beforesep}%
{\parinden
q**j
发帖数: 10612
4
没有回答。sorry,也许是我写的不清楚。
让我再试试。
我觉得section title 的字太大。就用了:
\section{\normalsize Mytitle}
把字变小了。但是这个section title 前面有个数字编号,比如
“2 Mytitle”
这个样子的。这个2还是很大。于是大侠建议用
\titleformat{\section}{\normalsize\bfseries}{\thesection}{1em}{}
就可以了。当然大侠是非常正确的。
现在我打算给subsection做同样的事情,于是我照猫画虎:
\titleformat{\subsection}{\smallsize\bfseries}{\thesubsection}{0.8em}{}
确不成功。请问哪里错掉了?多谢哦。
g*********r
发帖数: 124
5
来自主题: TeX版 - Another question
把下面的代码添加到导言区
\makeatletter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries\thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\makeatother
d**********o
发帖数: 1321
6
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
我与Emacs的不解情缘(9)
差不多去年暑假后回学期也学会了自己写macro,贴个前段时间做题时写过的写lc的模
板吧:M-x lc ENT :
(fset 'lc
[?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?i ?o ?s ?t ?r ?e ?a ?m ?> return ?# ?i ?n
?c ?l ?u ?d ?e ? ?< ?v ?e ?c ?t ?o ?r ?> return ?# ?i ?n ?c ?l ?u ?d ?e ?
?< ?a ?l ?g ?o ?r ?i ?t ?h ?m ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?s
?t ?r ?i ?n ?g ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?m ?a ?t ?h ?>
return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?s ?t ?a ?c ?k ?> return ?# ?i ?n ?c ?l
?u ?d ?e ? ?< ?q ?u ?e ?u ?e ?> retur... 阅读全帖
d**********o
发帖数: 1321
7
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
我与Emacs的不解情缘(9)
差不多去年暑假后回学期也学会了自己写macro,贴个前段时间做题时写过的写lc的模
板吧:M-x lc ENT :
(fset 'lc
[?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?i ?o ?s ?t ?r ?e ?a ?m ?> return ?# ?i ?n
?c ?l ?u ?d ?e ? ?< ?v ?e ?c ?t ?o ?r ?> return ?# ?i ?n ?c ?l ?u ?d ?e ?
?< ?a ?l ?g ?o ?r ?i ?t ?h ?m ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?s
?t ?r ?i ?n ?g ?> return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?c ?m ?a ?t ?h ?>
return ?# ?i ?n ?c ?l ?u ?d ?e ? ?< ?s ?t ?a ?c ?k ?> return ?# ?i ?n ?c ?l
?u ?d ?e ? ?< ?q ?u ?e ?u ?e ?> retur... 阅读全帖
T*******n
发帖数: 493
8
\documentclass{article}
\usepackage{listings}
\lstloadlanguages{C}
\begin{document}
\lstset{language=C,keywordstyle=\bfseries,commentstyle=\slshape}
\begin{lstlisting}{}
int i, j, k; /* three integers */
\end{lstlisting}
\end{document}

Please explain in more details what is not working.
T*******n
发帖数: 493
9
来自主题: TeX版 - CV里头的cite
I thought at first it would be simple to do with only LaTeX and BibTeX,
but as I explained, there is no general way to hack this and still
have the .bib file support arbitrary other .bst files.
For the NFSS/LaTeX209 font command problems, {\bf\sc Name} won't work
but changing it to {\bfseries\scshape Name} should. But in practice
there are other things that complicate the situation, I'm sure.

replace
l*********t
发帖数: 165
10
来自主题: TeX版 - 标题无法居中
\newcommand{\makeheading}[1]%
{\hspace*{-\marginparsep minus \marginparwidth}%
\begin{minipage}[t]{\textwidth+\marginparwidth+\marginparsep}%
{\large \bfseries #1}\\[-0.15\baselineskip]%
\rule{\columnwidth}{1pt}%
\end{minipage}}
............
\makeheading{\center\Large Chapter}
这是个模版来的,就是在chapter 下加了一个下划线,长度可变的,
\center 命令就不起作用了,
要怎么办才能把"chapter" 居中呢?
谢谢
g*********r
发帖数: 124
11
来自主题: TeX版 - 标题无法居中
{\large \bfseries #1}\\[-0.15\baselineskip]%
S**I
发帖数: 15689
12
\usepackage{titlesec}
\titleformat{\section}{\normalsize\bfseries}{\thesection}{1em}{}
g*********r
发帖数: 124
13
来自主题: TeX版 - question about lemma environment
试试下面的命令
\usepackage{ntheorem}
\theoremstyle{plain}\theoremheaderfont{\it\bfseries}
如果还有问题贴一下 .tex 文件和类文件
e******d
发帖数: 310
14
I want to change the font size of chapter heading, but don't change the
heading style. How can I do that?
I tried the following command, but it changed the style as well.
================================
\titleformat{\chapter}{\LARGE\bfseries}{\thechapter}{1em}{ }
================================
The current style is like this,
==================
Chapter 1
Introduction
===================
Thank you a lot
S**I
发帖数: 15689
15
how about
\titleformat{\chapter}{\LARGE\bfseries}{\thechapter}{1em}{~\\}
G********t
发帖数: 334
16
来自主题: Science版 - slides with latex
With the slides style, one can make
very good slides in Latex.
sample file
\documentclass[clock]{slides}
\usepackage{float}
\usepackage[dvips]{color, graphicx}
\begin{document}
\begin{center}\Large\bfseries
Sample Viewgraphs
\end{center}
\begin{slide}
\begin{center}\large Advantages of \texttt{slides}\end{center}
\begin{itemize}
\item \textcolor{cyan}{Uses special fonts}
\item \textcolor{red}{Forces key words instead of long text}
\invisible
\item Supports color layers
\item How about some math
n******0
发帖数: 298
17
来自主题: Statistics版 - 怎么改LaTex table of contents里的font?
I changed \bfseries in \l@chapter to \mdseries in report.cls.
(共0页)