-
-
Notifications
You must be signed in to change notification settings - Fork 878
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the standalone document class to simplify the tikz template (#1985)
[standalone](https://ctan.org/pkg/standalone) supports both PDFLaTeX and XeLaTeX (the latter means it will be much easier to support CJK); in addition, standalone doesn't need the preview package, and preview is too complicated
- Loading branch information
1 parent
00ae3ec
commit 1f3bd75
Showing
2 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
\documentclass{article} | ||
\include{preview} | ||
\usepackage[pdftex,active,tightpage]{preview} | ||
\documentclass[tikz]{standalone} | ||
\usepackage{amsmath} | ||
\usepackage{tikz} | ||
\usetikzlibrary{matrix} | ||
%% EXTRA_TIKZ_PREAMBLE_CODE %% | ||
\begin{document} | ||
\begin{preview} | ||
%% TIKZ_CODE %% | ||
\end{preview} | ||
\end{document} |
1f3bd75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krivit Does this change look good to you? I rarely use
tikz
myself, so I'd like another pair of eyes to double check it. Thanks!1f3bd75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yihui , looks like a definite net improvement to me. A small caveat is that there are certain things (such as as display equations and paragraph breaks) that
standalone
will typeset differently fromarticle
/preview
.1f3bd75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks a lot for your feedback!