forked from sunaku/sunaku.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchess-diagrams-in-lyx-with-pdflatex.html
20 lines (20 loc) · 3.37 KB
/
chess-diagrams-in-lyx-with-pdflatex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html><html><head><meta charset="utf-8" /><meta content="noarchive" name="robots" /><title>Chess diagrams in LyX with PDFLaTeX - The Terminal Programmer</title><meta content="2007-03-19T12:31:36-07:00" name="DCTERMS.created" /><meta content="2007-03-19T12:31:36-07:00" name="DCTERMS.modified" /><meta content="Suraj N. Kurapati" name="author" /><meta content="lyx, chess, latex, pdf" name="keywords" /><meta content="width=device-width, initial-scale=1" name="viewport" /><meta content="Readably https://github.com/sunaku/readably" name="generator" /><link href="style.css" rel="stylesheet" type="text/css" /><link href="index.atom" rel="alternate" title="feed" type="application/atom+xml" /><script src="js/jquery.slim.min.js"></script></head><body><article data-entry-id="chess-diagrams-in-lyx-with-pdflatex" id="body"><header><div class="navigation"><a class="rootlink" href="index.html#chess-diagrams-in-lyx-with-pdflatex" title="The Terminal Programmer"><span>The Terminal Programmer</span></a></div><h1 class="title">Chess diagrams in LyX with PDFLaTeX</h1><div class="author">Suraj N. Kurapati</div><time class="date" datetime="2007-03-19T12:31:36-07:00">19 March 2007</time></header><hr /><div class="description"></div><div class="content"><p><a href="http://lyx.org">LyX</a> 1.4.3 fails to generate a PDF with PDFLaTeX if you
have chess diagrams in your document. The solution is to enable the
<strong>chess</strong> package in your LyX document’s LaTeX preamble, as follows.</p>
<div class="highlight"><pre class="highlight tex"><code><span class="k">\usepackage</span><span class="p">{</span>chess<span class="p">}</span>
</code></pre></div><p>As <em>obvious</em> as this may seem, it took nearly three hours of fiddling
around and scouring the web before I happened upon <a href="http://www.chesspublishing.com/yabb2/YaBB.pl?num=1147466533">this gem of a
solution</a>.</p>
<p>Furthermore, I use the following in my document’s LaTeX preamble to enable
chess diagrams for presentations with
<a href="http://latex-beamer.sourceforge.net/">LaTeX-beamer</a> (the “Beamer
Presentation Class” document class in LyX).</p>
<div class="highlight"><pre class="highlight tex"><code><span class="c">% for chess diagrams</span>
<span class="k">\usepackage</span><span class="na">[ps,mover]</span><span class="p">{</span>lyxskak<span class="p">}</span>
<span class="k">\newgame</span>
<span class="k">\usepackage</span><span class="p">{</span>chess<span class="p">}</span> <span class="c">% to make it work in pdflatex</span>
</code></pre></div></div><div class="comments" id="comments"><script>var disqus_container_id = 'comments';
var disqus_title = "Chess diagrams in LyX with PDFLaTeX";
var disqus_url = "https://sunaku.github.io/chess-diagrams-in-lyx-with-pdflatex.html";</script><script async="" src="https://theterminalprogrammer.disqus.com/embed.js"></script></div><hr /><footer><p class="copyright">© 2007 Suraj N. Kurapati</p><p class="credits"><a href="https://github.com/sunaku/readably">Readably</a> written, <a href="https://github.com/sainnhe/everforest">Everforest</a> colored. </p><p>Like my work? 👍 Please <a href="vegan-for-life.html">spare a life</a> today as
thanks! 🐮🐷🐔🐟🙊✌💞</p>
</footer><!--[if lt IE 9]><script src="js/html5shiv.min.js"></script><script src="js/html5shiv-printshiv.min.js"></script><![endif]--><script src="index.js"></script></article></body></html>