'공부이야기/LaTeX 이야기'에 해당 되는 글 14건

  1. 2015.03.09 \norm 매크로 1
  2. 2015.01.20 LaTeX 수식 입력을 지원하는 채팅
  3. 2014.07.16 Notepad++(노트패드 플러스 플러스)에서 맞춤법 검사 기능 추가하기
  4. 2014.04.15 LaTeX에서 집합을 표시할때 such that 기호로 적당한 크기의 vertical bar 만들기
  5. 2013.07.25 LaTeX에서 두문자어 사용을 위한 패키지 acronym
  6. 2013.06.24 Theorem, Lemma 등의 상호참조시 "Theorem", "Lemma"를 포함해서 상호참조하기
  7. 2013.03.26 texlive 2011을 제거하고 2012로 설치 후 파일 연결이 texworks로 제대로 되지 않는 문제
  8. 2013.02.22 명령행에서 LaTeX 작업
  9. 2013.02.12 Using footnote in tables
  10. 2012.01.02 [펌]Beamer: frame number in split theme footline
  11. 2011.09.18 Basic tips for LaTeX
  12. 2010.11.13 웹기반 LaTeX 수식 편집기
  13. 2010.01.25 LaTex 관련 주요 문서
  14. 2009.08.14 Online LaTeX equation editor
2015. 3. 9. 13:16

\norm 매크로

어떤 벡터 x의 놈을 표현하기 위해 보통 다음과 같이 입력을 해왔다.

\|x\| 혹은 \left\|x\right\|

불편하기도 하고 가독성도 떨어지고 해서 \norm이란 명령을 정의해서 사용하고자 한다. \norm{x}는 위에서 전자처럼, \norm*{x}는 후자처럼 동작하도록... 프리앰블에 다음과 같이 정의해준다.



\newcommand{\normlong}[1]{\left\|{#1}\right\|}

\newcommand{\normshort}[1]{\|{#1}\|}

\makeatletter\newcommand\norm{\@ifstar\normlong\normshort}\makeatother



더 나은 해법은 없을까? \normlong 따위를 정의하지 않고 할 수 있는 방법...

2015. 1. 20. 13:43

LaTeX 수식 입력을 지원하는 채팅

http://mathim.com/

2014. 7. 16. 20:38

Notepad++(노트패드 플러스 플러스)에서 맞춤법 검사 기능 추가하기

http://wezard4u.tistory.com/2810
2014. 4. 15. 20:39

LaTeX에서 집합을 표시할때 such that 기호로 적당한 크기의 vertical bar 만들기

집합을 나타낼때 such that 기호로 항상 \colon을 사용해 왔었다. 왜냐하면 적당한 크기의 vertical bar를 만들기가 귀찮아서였다. 그래서 검색을 좀 해보니 다음과 같은 방법이 가장 간단해 보인다.


프리앰블에 아래와 같은 내용을 추가한다.


\makeatletter

\newcommand\suchthat{%

 \@ifstar

  {\mathrel{}\middle|\mathrel{}}

  {\mid}%

}

\makeatother


그리고 긴 vertical bar를 이용하고 싶으면 \suchthat*를 이용한다.




2013. 7. 25. 19:56

LaTeX에서 두문자어 사용을 위한 패키지 acronym

문서를 작성하다 보면 두문자어를 사용하게 되는데, 두문자어는 맨 처음 언급되는 지점에서 full name으로 언급되고 그 이후부터 두문자어로 사용되는 것이 보통이다. 하지만 문서를 수정하다 보면 '처음 언급되는 지점'이라는 것이 계속 바뀌기 마련이다. 당연히 LaTeX은 이러한 문제에 대한 해법을 가지고 있다. 아래에 가장 간단한 예제 소스를 제공한다. 두문자어를 처음 정의했을 때는 컴파일을 적어도 두 번은 해야 한다.



\documentclass{article}

\usepackage{acronym}

\acrodef{amp}[AMP]{Acyclic Minimally Persistent}

\acrodef{lmi}[LMI]{Linear Matrix Inequality}


\begin{document}

\ac{amp} is abbreviated to \ac{amp}.\\

\acs{amp} and \acl{amp}.


\ac{lmi} is abbreviated to \ac{lmi}.\\

\acs{lmi} and \acl{lmi}.

\end{document}


출력 결과는 아래와 같다.


2013. 6. 24. 17:19

Theorem, Lemma 등의 상호참조시 "Theorem", "Lemma"를 포함해서 상호참조하기


기본적으로는 위와 같은 방식으로 상호참조를 사용하는데 theorem을 lemma 또는 proposition 등으로 중간에 바꾸게 되면 매우 귀찮아진다. 깔끔한 해법으로 cleveref 패키지와 \Cref 명령어를 이용하는 방법이.... 


http://tex.stackexchange.com/questions/5767/how-to-get-more-complete-references


2013. 3. 26. 11:23

texlive 2011을 제거하고 2012로 설치 후 파일 연결이 texworks로 제대로 되지 않는 문제

ko.TeXLive 2011을 제거 후 2012로 새로 설치한 이후 겪은 증상이다. *.tex 파일들은 그냥 더블클릭으로 실행 하면 바로 texworks로 연결이 되었지만 *.bib 파일이나 *.cls 파일 등은 "마우스 우클릭 -> 연결 프로그램 -> 기본 프로그램 선택"을 통해 설치된 texworks를 직접 찾아가 연결을 해줘도 파일이 texworks로 연결이 되지 않았다. 연결 프로그램 목록에도 추가가 되지 않고...

원인은 레지스트리에 texworks의 실행 경로가 이전 버전의 설치 경로로 되어 있었던 것이다. 다음과 같이 해결한다.

윈도우키+R -> regedit 입력 후 확인 -> Computer\HKEY_CLASSES_ROOT\Applications\texworks.exe\shell\open\command -> 오른쪽 창의 default를 더블클릭해서 열고 값 데이터를 다음과 같이 수정해 준다.

"C:\usr\texlive\2012\bin\win32\texworks.exe" "%1"

texworks의 설치 경로가 다른 분들은 texworks가 설치된 경로를 찾아서 적당히 바꿔주면 된다. 2012로 된 부분이 아마 수정 전에는 2011로 되어 있었을 것이다. 

2013. 2. 22. 14:03

명령행에서 LaTeX 작업

2013. 2. 12. 09:29

Using footnote in tables

http://texblog.org/2012/02/03/using-footnote-in-a-table/

footnote 패키지를 불러주고 savenotes 환경으로 table 환경을 감싸주면 된다고 한다. footnote 패키지가  xcolor 패키지와 충돌이 있는데 xcolor 패키지를 먼저 불러오고 뒤에서 footnote 패키지를 불러오면 충돌이 없다고...


2012. 1. 2. 14:01

[펌]Beamer: frame number in split theme footline

http://texblog.net/latex-archive/plaintex/beamer-footline-frame-number/


Beamer: frame number in split theme footline

Juli 12th, 2008 by Stefan Kottwitz

Yet again somebody in the mrunix forum asked for an advice how to put the frame number into the footline of his beamer presentation. He was using the “Warsaw” outer theme. The first solution

\setbeamertemplate{footline}[frame number]

will just overwrite the “Warsaw” footline.

Possible solutions are: to use a different outer theme or to change the “Warsaw” footline. “Warsaw” uses the split outher theme, a workaround for insertion of the frame number should consider that and will be usable for other themes like “Copenhagen”, “Luebeck” and “Malmoe”. Inspection of the file beamerouterthemesplit.sty reveals that the footline uses the \insertshorttitle macro in its right part. So a quick workaround could be to redefine that macro:

\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
  \oldmacro\hfill%
  \insertframenumber\,/\,\inserttotalframenumber}

If you want to see more details you could look at example source code and its pdf output.

This topic was discussed on mrunix.de and in the Matheplanet forum.

 



2011. 9. 18. 12:31

Basic tips for LaTeX

2010. 11. 13. 17:49

웹기반 LaTeX 수식 편집기

2010. 1. 25. 16:52

LaTex 관련 주요 문서

2009. 8. 14. 08:05

Online LaTeX equation editor