2007-09-24 tikz-2d
A dzisiaj dla odmiany niespodzianka: parę nowinek [[TeX|TeX]]owych. Właśnie na [[http://www.fauskes.net/|stronie . . . aż Hans Hagen się o tym dowie i wmontuje do ConTeXta... Jak widać, TeX przeszedł długą drogę: od programu . . . nad kolejnym "klikalnym" edytorem obrazków dla TeXa (dotąd wiedziałem o dwóch: [[http://tpx.sourceforge.net/|TpX]] . . .
2K - last updated 2007-09-24 11:08 UTC by Marcin Borkowski
2008-04-01 Pręgierz
No i przelało się. Kolejny raz zobaczyłem tak wyglądające źródło TeXowe, że rozbolała mnie głowa. Dlaczego . . . Dlaczego ludzie sobie to robią? Dlaczego piszą w TeXu tak, jakby prowadzili samochód, wciskając sprzęgło . . . prawo, tylko żeby potem nie mówili, że "w tym TeXu to jednak niewygodnie się pisze", albo nie dziwili, . . . jak to zgrabnie powiedzieć po polsku:() kodu TeXowego, w który nie uwierzycie, że jest możliwy, . . . przykładów, jak //należy// pisać w (La)TeXu. Oczywiście, to i tak będzie służyło głównie rozładowaniu . . .
2K - last updated 2008-04-01 06:56 UTC by Marcin Borkowski
2008-04-03 Kpathsea
(Uwaga! Dzisiejszy wpis jest ciut techniczny. Jak co, to ostrzegałem.) W zasadzie jestem człowiekiem . . . to mieć//, i to nie czekając na kolejną wersję texlive'a. Cóż zatem zrobiłem? Poszedłem na sourceforge'a . . . ale to inna historia...) i rozpakowałem do {{{$(TEXMF)/../texmf-local/tex/generic/pgf-2.0.0}}}. Nie . . . zachowanie zasad [[http://en.wikipedia.org/wiki/TeX_Directory_Structure|TDS]] - w końcu {{{kpathsea}}} . . . wyborem - w końcu pgf jest używalny również w ConTeXcie. Potem oczywiście sudo mktexlsr i ziuuu. No . . .
2K - last updated 2008-09-03 10:26 UTC by Marcin Borkowski
2008-04-26 Wywiad z Knuthem
Ukazał się bardzo interesujący [[http://informit.com/articles/article.aspx?p=1193856|wywiad z Papą Knuthem]]. . . . playing an organ.// KategoriaWiara, KategoriaTeX . . .
1K - last updated 2008-04-26 22:00 UTC by Marcin Borkowski
2008-08-25 Korekta italikowa
Dawno, dawno temu, gdy pisało się w [[TeX, LaTeX i s-ka|plain TeXu]], //korektę italikową// wstawiało . . . wiesz, co to korekta italikowa, porównaj to: $\text{\emph{d}b}$ z tym: $\text{\emph{d\nocorr}b}$. . . . widoczny -- ale jednak jest. Na przykład: $\text{tu \emph{jest\nocorr} źle}$, $\text{a tu \emph{jest} . . . dobrze}$.) Korektę italikową w plain TeXu wprowadza się ręcznie, pisząc np. {{{{\it d\/}b}}}. . . . LaTeX robi to super-fantastycznie-automatycznie-i-nie-za-bardzo-wiadomo-jak . . .
5K - last updated 2008-08-26 07:40 UTC by Marcin Borkowski
2008-08-26 Dlaczego nie lubię LaTeXa
Oczywiście, tytuł tego wpisu jest troszkę prowokacją -- szczególnie dla tych, którzy mnie znają i wiedzą, . . . jak wielkim jestem fanem TeXa. No właśnie, TeXa -- a nie LaTeXa. I tu jest pogrzebany . . . przysłowiowy pies. Bo dla wielu osób TeX i LaTeX to synonimy; [[TeX, LaTeX i s-ka|nic bardziej . . . ubiegłego stulecia;), zaczynałem moją przygodę z TeXem od plaina. Aż do około 2000 roku uparcie i konsekwentnie . . . gardziłem LaTeXem, uważając, że jest to narzędzie dla mięczaków, . . .
7K - last updated 2008-08-26 08:34 UTC by Marcin Borkowski
2008-09-30 Propaganda TeXowa
Przedwczoraj, tj. 27. września, na [[http://web.wmi.amu.edu.pl|Wydziale Matematyki i Informatyki]] UAM . . . co za tym idzie, świetna okazja do propagowania TeXa, o co też zostałem poproszony przez władze mojego . . . korkową i miałem za zadanie siedzieć i pokazywać TeXa tym, którzy będą chcieli go oglądać. Na tablicę . . . co ciekawsze kąski z [[http://tug.org/texshowcase|TeXshowcase]] [[http://tug.org|TUGu]]. . . . Ponadto wyłożyłem TeXbooka, "LaTeX wiersz po wierszu" (tak, wiem, że . . .
4K - last updated 2008-09-30 19:58 UTC by Marcin Borkowski
2008-12-18 Jak to TeX zachwyca, skoro nie zachwyca
TeX jest wspaniały, najlepszy i w ogóle super-bomba-hiper-ekstra-bajerancki. To oczywiście aksjomat -- . . . przynajmniej w środowisku TeXowym. A ja gotów jestem się założyć, że istnieje . . . wyraźna ujemna korelacja między //popularnością TeXa// a //jakością (typograficzną) przeciętnego artykułu . . . Dziś jest tak: //matematyk// pisze pracę w TeXu, //TeX// składa ją z wirtualnych czcionek, //matematyk// . . . się zajmuję matematyką, nie mam czasu uczyć się TeXa". No cóż, każdy ma prawo tak uważać. Ale skoro . . .
3K - last updated 2008-12-18 09:34 UTC by Marcin Borkowski
2008-12-19 Jak może zachwycać, jeśli nikt nie czyta
Dziś ciąg dalszy [[2008-12-18 Jak to TeX zachwyca, skoro nie zachwyca|wczorajszego postu]], tym razem . . . krócej. Otóż, skoro wiemy już, że świadomość TeXowa (i typograficzna) wśród ludu matematycznego . . . nie chcieć, tylko niech potem nie narzeka na TeXa, że mu źle działa, jeśli źle robi -- //garbage . . .
1K - last updated 2008-12-19 11:13 UTC by Marcin Borkowski
2009-03-06 AMS-LaTeX, czyli czy leci z nami pilot
Tak sobie dziś przeglądałem plik {{{amsclass.dtx}}} i oto, co znalazłem: == 1000. wiersz kodu == The . . . upright font for punctuation or digits in italic text. {{{\let\upn=\textup}}} == 1868. wiersz kodu == . . . to be a no-op. {{{\providecommand\@upn{\textup}}}} == 2256. wiersz kodu == Macro for making . . . numbers and punctuation in italic or slanted text. This is to avoid visual inconsistencies between . . . in math and adjacent numbers or parentheses in text. {{{\def\rom{\textup}}}} == Moje refleksje == . . .
2K - last updated 2009-03-06 11:00 UTC by Marcin Borkowski
2009-04-12 Content AND Presentation
Po ponad dwóch latach //blogowania// postanowiłem zapoczątkować, by tak rzec, //pod//bloga w wersji angielskiej. . . . tematem angielskiej edycji bloga będzie [[TeX]].) Ponieważ jednak pewną sprawę uważam za istotną, . . . jakie przewijają się na moim blogu, są wiara, TeX i matematyka. Uważam je ponadto za ściśle powiązane; . . . w szczególności mam tu na myśli wiarę i TeXa (którym poświęcona jest większa część mojego bloga). . . . wieki. KategoriaBlog, KategoriaWiara, KategoriaTeX . . .
3K - last updated 2009-04-12 12:51 UTC by Marcin Borkowski
2009-04-12 Content AND Presentation (en)
I would like to welcome everyone on this new and old blog. (New, because what you see is the first English . . . 80% to (Roman-Catholic) religion and in 20% to TeX and mathematics. I expect that the proportions . . . vocabulary is much larger when speaking about TeX and much smaller when talking about faith. How . . . certain, all these subjects (religion, maths and TeX) will be present, possibly with occasional rants . . . things in elementary mathematics. As for TeX, I will very often write about typographic nuances . . .
5K - last updated 2009-04-11 22:17 UTC by Marcin Borkowski
2009-04-14 List of publications of a person (en)
Once in a while you want to typeset a list of publication of somebody (maybe yourself, maybe not). It . . . which is an excellent replacement for BibTeX. One of its nice features is that you don't have . . . a strange language---everything is done within LaTeX. Changing {{{amsrefs}}} settings so that the author . . . I put into the preamble to achieve this: <LaTeX-source> \BibSpec{article}{% +{} {\textit} {title} . . . +{.} { } {part} +{:} { \textit} {subtitle} +{,} { \PrintContributions} {contribution} . . .
6K - last updated 2009-04-15 10:07 UTC by Marcin Borkowski
2009-04-27 Fun with quantifiers (en)
Some time ago, a friend of mine asked me how to put a symbol //below// a quantifier---in other words, . . . (at least, after a reading session with //The TeXbook//;)): {{{\limits}}} (and it's twin, {{{\nolimits}}}) . . . \int\nolimits_0^1$ when you say <LaTeX-source> \int\limits_\Omega \int\nolimits_0^1 . . . </LaTeX-source> to (La)TeX. (Note that LaTeX, and particularly . . . AMS-LaTeX, has some defaults, different for, e.g., sums and . . .
6K - last updated 2010-02-21 23:41 UTC by Marcin Borkowski
2009-05-27 Festiwal Nauki i Sztuki
Dzisiaj już drugi raz, tym razem wspólnie z kol. Piotrem Kasprzakiem, opowiadałem o TeXu na [[http://web.wmi.amu.edu.pl/Artyku%C5%82y/tabid/240/ctl/ArticleView/mid/672/articleId/244/XII-FESTIWAL-NAUKI-I-SZTUKI-na-Wydziale-Matematyki-i-Informatyki-UAM.aspx|Festiwalu . . . plik pdf z prezentacją. KategoriaBlog, KategoriaTeX . . .
1K - last updated 2009-05-27 16:34 UTC by Marcin Borkowski
2009-09-20 Save trees (en)
Recently, I have discovered a very nice LaTeX package with a funny name: {{{savetrees}}}, by Scott Pakin. . . . For all these poor people who use BibTeX;), it provides also a BibTeX style doing the same . . . with bibliographies. If you have a recent TeX installation, you probably already have it; and . . . if not, upgrade your TeX as soon as possible! CategoryBlog, CategoryEnglish, . . . CategoryTeX, CategoryLaTeX, KategoriaLaTeX, KategoriaLaTeXPorady . . .
1K - last updated 2009-09-20 12:50 UTC by Marcin Borkowski
2009-11-19 The 3dplot package (en)
It's been quite a lot of time since I've written anything here; I hope that I will be able to put things . . . But //ad rem//. Today I looked at [[http://www.texample.net/tikz/]], which is a very good place to . . . something really, really great: [[http://www.texample.net/tikz/examples/the-3dplot-package/|an example . . . this one! CategoryBlog, CategoryEnglish, CategoryTeX, CategoryLaTeX, KategoriaLaTeX . . .
2K - last updated 2009-11-19 23:26 UTC by Marcin Borkowski
2010-01-15 Customizing end-of-proof marks (en)
I was recently asked by a friend to help him with customizing end-of-proof marks. Say that we are writing . . . a textbook with theorems with proofs and example problems . . . solution (to be pasted in the preamble): <LaTeX-source> \newenvironment{solution}{% \proof[Solution]\def\qedsymbol{$\diamond$}% . . . }{% \endproof } </LaTeX-source> What it does is: # The newly-defined . . . (here, the $\diamond$). Since we don't use LaTeX's {{{\newcommand}}}, but plain TeX's {{{\def}}}, . . .
3K - last updated 2010-01-15 18:34 UTC by Marcin Borkowski
2010-01-19 Przedpotopowy TeX
Jednym z bardzo przykrych i irytujących błędów, jakie popełniają użytkownicy TeXa, jest używanie staroci. . . . Jakkolwiek sam TeX (i LaTeX2e) są zamrożone i nie zmieniają się, to . . . pojawiają się np. coraz to nowsze pakiety do LaTeXa (lub nowsze wersje starych pakietów). Jakkolwiek . . . każdy ma ochotę na śledzenie nowinek w świecie TeXowym (bo brak czasu to jak zwykle wymówka -- pięć . . . to wydaje mi się, że używanie konstrukcji LaTeXa 2.09 przekracza granice dobrego smaku. OK, jeśli . . .
3K - last updated 2010-01-20 10:49 UTC by Marcin Borkowski
2010-01-21 tikz-3dplot revisited (en)
Some time ago [[2009-11-19 The 3dplot package (en)|I wrote about a very nice 3dplot package]]. A few . . . of giving the angle as three points: the vertex and two points determining the sides of the angle. . . . this! CategoryBlog, CategoryEnglish, CategoryTeX, CategoryLaTeX, KategoriaLaTeX . . .
1K - last updated 2010-01-21 08:44 UTC by Marcin Borkowski
2010-09-05 Including bitmaps in LaTeX documents (en)
I was asked some time ago how to include a //jpg// file in a LaTeX document. Well, if you use pdflatex, . . . just {{{\usepackage{graphicx} }}}and then <LaTeX-source> \includegraphics[options]{filename.jpg} . . . </LaTeX-source> where //options// may be (among others) . . . rely on Postscript inclusions via dvips, so pdflatex is useless for them. It turns out that the {{{graphicx}}} . . . that one may omit the extension, so that <LaTeX-source> \includegraphics[options]{filename} . . .
3K - last updated 2010-09-04 23:00 UTC by Marcin Borkowski
2010-09-12 A strange LaTeX error when using brackets (en)
Some time ago my friend called me and asked about a weird error he got when using square brackets. He . . . wanted to type something like <LaTeX-source wrong> \begin{verse} A line of a poem\\ . . . is followed by another one. \end{verse} </LaTeX-source> Quite surprisingly, he got a "! Missing . . . the command and the next one. What happened? LaTeX tried to treat {{{which}}} as a length, which was . . . length unit should follow (which did not), so LaTeX put {{{pt}}}. What should be done? There are a . . .
2K - last updated 2010-09-12 12:29 UTC by Marcin Borkowski
2010-11-17 Changing the color of theorems in beamer (en)
Today a friend asked me if I know a "good" method to change the color of theorems in beamer. (Obviously, . . . up with this (less-than-optimal) solution: <LaTeX-source wrong> \addtobeamertemplate{theorem begin}{% . . . body}{fg=red,bg=yellow}% }{} </LaTeX-source> Here, we add the commands to change . . . that some lower-level hackery is needed: <LaTeX-source> \let\OLDtheorem=\theorem \def\theorem{% . . . body}{fg=red,bg=yellow}\OLDtheorem } </LaTeX-source> Granted this is a bit ugly---but it . . .
2K - last updated 2010-11-17 16:36 UTC by Marcin Borkowski
2010-11-23 Changing the layout of theorems in beamer (en)
Continuing my [[2010-11-17 Changing the color of theorems in beamer (en)|previous post]], let's answer . . . Let us look into a simple example: <LaTeX-source> \documentclass{beamer} \makeatletter . . . \ifx\inserttheoremaddition\@empty \else : \textmd{\textit{\inserttheoremaddition}} \fi \inserttheorempunctuation . . . \end{theorem} \end{frame} \end{document} </LaTeX-source> Notice how {{{\makeatletter}}} is needed . . . here for the internal LaTeX command {{{\@empty}}} to work. Also notice that . . .
2K - last updated 2010-11-23 00:13 UTC by Marcin Borkowski
2011-02-24 Wavy lines as delimiters (en)
Well, it's been a while since I posted here; but today, I've got another real-life problem solution. . . . problem is: how to obtain such an effect in LaTeX? The problem is, surprisingly, not so easy. There . . . is the [[http://www.ctan.org/tex-archive/fonts/mnsymbol/|MnSymbol]] font & package, . . . code I used to obtain the above example: <LaTeX-source> \documentclass{article} \usepackage{amsmath} . . . \begin{equation*} \int 2x\cos x^2\,\textup{d}x=\wavylrbox{ \begin{aligned} t&=x^2\\ . . .
3K - last updated 2011-02-25 11:11 UTC by Marcin Borkowski
2011-07-01 The latexdiff script (en)
It is quite often the case that when working on some document, one has two versions of the same file . . . not //word by word//, which is better for (La)TeX files -- after all, a single newline and a space . . . are the same for LaTeX. That is why the {{{latexdiff}}} script is such . . . exactly what is says on the tin: it takes two LaTeX files, compares them (taking into account the space/newline . . . issue as well as LaTeX commands and such) and yields a //third LaTeX file//, . . .
2K - last updated 2011-07-01 12:45 UTC by Marcin Borkowski
2011-07-08 New version of the enumitem package (en)
Just about a week ago, Javier Bezos uploaded a new, third version of his celebrated [[http://ctan.org/tex-archive/macros/latex/contrib/enumitem|enumitem]] . . . to CTAN. Since this is one of my favourite LaTeX packages, I am going to give a short outline of . . . good job! CategoryEnglish, CategoryBlog, CategoryTeX, KategoriaTeX, KategoriaLaTeX, KategoriaLaTeXPorady . . .
2K - last updated 2011-07-08 12:56 UTC by Marcin Borkowski
2011-07-15 LM Math - breaking news (en)
Just a few hours ago I received a [[http://www.gust.org.pl/gustnews/news-lm-math-en?set_language=en|thrilling . . . mailing list of the [[http://gust.org.pl|Polish TeX Users Group]], which I can't resist just copying . . . the [[http://www.gust.org.pl/projects/e-foundry/tex-gyre/index_html|TeX Gyre]] collection might be . . . won't be able to say "well, this was typeset by TeX" on seeing familiar CM-like glyphs in mathematical . . . good OTF fonts will mean larger userbase for ConTeXt MkIV and luatex - that bodes really well! CategoryEnglish, . . .
2K - last updated 2011-07-14 22:21 UTC by Marcin Borkowski
2011-07-22 The snapshot and bundledoc packages (en)
//Situation A//: you work on a LaTeX document with a friend, and suddenly your pdf and his pdf---made . . . from the same LaTeX file---look different. What's going on? //Situation . . . B//: you send a LaTeX file to someone, and then you get an angry message: . . . with all the files needed for this particular LaTeX document to compile. It also includes a script . . . to generate this archive //in LaTeX format//, using the smart and not really well-known . . .
2K - last updated 2011-07-22 19:37 UTC by Marcin Borkowski
2011-07-29 Enforcing proper usage of LaTeX2e constructs (en)
Today I wanted to write something about automatic extraction of page ranges from a pdf file, but this . . . line of the document in the following way: <LaTeX-source> \RequirePackage[l2tabu,orthodox,abort]{nag} . . . </LaTeX-source> Refer to its documentation for the explanation . . . famous document entitled //[[http://www.ctan.org/tex-archive/info/l2tabu/english/l2tabuen.pdf|An essential . . . guide to LaTeX2e usage. Obsolete commands and packages]]//, {{{orthodox}}} . . .
2K - last updated 2011-07-29 21:07 UTC by Marcin Borkowski
2011-08-05 Semi-automatic selection of pages in a pdf (en)
As I mentioned in [[2011-07-29 Enforcing proper usage of LaTeX2e constructs (en)|my previous post]], . . . package (thanks to Martin Scharrer for [[http://tex.stackexchange.com/questions/22909/how-to-change-the-page-numbers-displayed-in-a-pdf-viewer|answering . . . my question about this on TeX.SX]]!). This is all trivial---but time-consuming . . . up with the following trick: I devised a short tex file, which processed by LaTeX resulted in a pdf . . . year). So I created a file {{{wm-45-2--217-240.tex}}} with the following contents: <LaTeX-source> . . .
4K - last updated 2011-08-05 21:23 UTC by Marcin Borkowski
2011-09-07 How not to typeset formulae (en)
I'm at a maths conference now, and thus I am exposed to numerous slides (usually done in whatever-TeX---{{{beamer}}} . . . too; I'll be probably the only one with ConTeXt-based slides, though;)). Today I saw something . . . pair of equations: $\vbox{\begin{gather*}\text{something}_1-\text{something else}_1+\text{yet . . . another}_1=0\\ \text{something}_2+\text{something else}_2=\text{yet . . . Just compare it to this: $\vbox{\begin{gather*}\text{something}_1-\text{something else}_1+\text{yet . . .
2K - last updated 2011-09-09 06:41 UTC by Marcin Borkowski
2011-11-25 First three words macro (en)
Today, I read [[http://tex.stackexchange.com/questions/35997/n-first-words-command-for-citation-style|a . . . question on TeX.SE]] involving the following problem: how to take . . . some text, cut it to three words if it has more of them . . . number of words exceeded 7 (see remarks in The TeXbook, Appendix D!), but for a fixed number of words . . . it is relatively easy: <LaTeX-source> \documentclass{article} \usepackage{etoolbox}% . . .
3K - last updated 2011-11-24 23:28 UTC by Marcin Borkowski
2011-12-25 Wesołych Świąt
Gdyby przypadkiem ktoś tu jeszcze zaglądał od czasu do czasu, życzę Wesołych Świąt Bożego Narodzenia! . . . też pochodzi od Boga!). Oto pierwszy: [[http://tex.stackexchange.com/questions/39149/how-can-we-draw-a-christmas-tree-with-decorations-using-tikz|jak . . . narysować choinkę w TeXu]]. A drugi, to garść wrażeń z otwarcia i przetestowania . . . stole. KategoriaBlog, KategoriaWiara, KategoriaTeX, KategoriaGryPlanszowe . . .
4K - last updated 2011-12-26 01:57 UTC by Marcin Borkowski
2012-06-22 Hyphenation checking in LuaTeX (en)
And again it's been a while since I posted anything here; and today's post is kind of a reminder for . . . second (disabled by default) is similar to what TeX normally does with overfull hboxes; each hyphenation . . . more practical one, since you don't lose the context, but this opinion is based only on intuition and . . . addition to the evergrowing repertoire of LaTeX tools. CategoryEnglish, CategoryBlog, CategoryTeX, . . . KategoriaTeX . . .
2K - last updated 2012-06-22 00:05 UTC by Marcin Borkowski
2013-05-10 M-x hello-world (en)
So, having [[2009-04-12_Content_AND_Presentation_(en)|blogged]] (a bit irregularly, I have to admit) . . . about (mainly) my [[Faith|faith]] and [[TeX (en)|TeX]], time has come to include here a new . . . do, especially ones that simplify a life of a TeX user. This might be -- or at least I hope so -- . . . Emacs. CategoryEnglish, CategoryBlog, CategoryTeX, CategoryEmacs . . .
2K - last updated 2013-05-10 08:56 UTC by Marcin Borkowski
2013-05-18 A presentation on LaTeX editing (en)
I am proud to be the supervisor of a so-called students' TeX scientific circle. It is a revival of a . . . was supposed to be addressed to beginning (La)TeX users, and we quickly settled upon the topic: how . . . to choose the editing environment for TeX. (I /did/ try not to talk about Emacs all the time.) . . . enjoy the English version of [[Slides about LaTeX editing.pdf|the slides]] -- and the theme! CategoryEnglish, . . . CategoryBlog, CategoryEmacs, CategoryTeX . . .
2K - last updated 2015-08-29 22:01 UTC by Marcin Borkowski
2013-05-25 Clocking in from anywhere (en)
OK, I'll admit it. I'm an Org-mode fan. (Is there any serious Emacs user nowadays who isn't one - or . . . to call it from outside Org-mode (e.g., from LaTeX-mode buffers, which is often the case with me). . . .
3K - last updated 2013-05-25 20:03 UTC by Marcin Borkowski
2013-06-02 Making TAB jump out of the group (en)
I like Yasnippet. I like especially how you can say {{{\frac{$1}{$2}$0}}} in a snippet file, and then . . . to "next field" or after environment in LaTeX or ConTeXt (defcustom TeX-jumping-tab-regex-list . . . opening one "\n *\\\\end{.*?}\n? *" ; end of a LaTeX environment "\n *\\\\\\(stop\\|end\\)[a-z]+\n? . . . *" ; end of ConTeXt startstop or block "\n *\\\\stop\\[[a-z]+\\]\n? . . . *" ; end of alternative ConTeXt startstop syntax ) "A list of regexen for TeX-jumping-tab . . .
2K - last updated 2013-06-02 14:50 UTC by Marcin Borkowski
2013-08-26 docTeX mode and YASnippet (en)
Well, I had a long hiatus in posting here - both real life and then vacation contributed to it. But I'm . . . alive and kicking, still a Catholic, TeX and Emacs user and boardgamer - expect more posts . . . a future myself;)) for using YASnippet with AUCTeX's docTeX mode. Since much of a docTeX document . . . however, for my half-dozen snippets for docTeX mode, so what I did was basically putting {{{(add-hook . . . 'docTeX-mode-hook '(lambda () (setq yas-buffer-local-condition . . .
1K - last updated 2013-08-26 06:10 UTC by Marcin Borkowski
2013-09-18 Selective replacement in LaTeX documents (en)
A few days ago, I was working on a LaTeX file written by a someone. The person who typed it in didn't . . . {{{\b\([A-Cx-z]\)\b}}} with {{{\,(if (texmathp) \1 (concat "$" \1 "$"))}}}. To my surprise, . . . After a bit of searching I found the culprit: AUCTeX's {{{texmathp}}} isn't a pure function -- it does . . . quick and dirty: {{{\,(let ((letter \1)) (if (texmathp) letter (concat "$" letter "$")))}}}; after . . . I realized that {{{\,(if (save-match-data (texmathp)) \1 (concat "$" \1 "$"))}}} is much better. . . .
3K - last updated 2013-09-19 09:10 UTC by Marcin Borkowski
2013-10-09 Better keymap for org-tree-slide
Recently, I tried out [[https://github.com/takaxp/org-tree-slide|org-tree-slide]] mode for presentations . . . I don't have to [[2013-05-18_A_presentation_on_LaTeX_editing_(en)|trick Beamer]] to have Emacs-like . . . that matter - after all, they are the only real text editors in existence, with Emacs being slightly . . .
4K - last updated 2013-10-16 18:26 UTC by Marcin Borkowski
2013-10-29 The show2e package
I can't (unfortunately) remember where, but somewhere on [[http://tex.stackexchange.com|TeX.StackExchange]] . . . package. CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX . . .
1K - last updated 2013-10-29 14:57 UTC by Marcin Borkowski
2013-12-14 Searching for strings in math mode only
Sometimes I wish AUCTeX had a function similar to {{{search-forward}}}, but looking only at math mode . . . the point and end of the buffer, but //only// in text mode, it will jump there anyway. I'll probably . . . (Also, an isearch switch to look only at math or text mode would be nice. I'll definitely look into . . . it, too.) {{{ (defun TeX-search-forward-math-mode (string) "Search forward . . . for STRING, but only in (La)TeX math mode. Crude implementation: if found in text . . .
2K - last updated 2013-12-14 19:29 UTC by Marcin Borkowski
2014-01-24 Finding a keybinding for magit-status
In his excellent [[http://www.masteringemacs.org/articles/2013/12/06/introduction-magit-emacs-mode-git/|introduction . . . single-directory and often single-file LaTeX projects, RCS does its job just fine), I did use . . .
3K - last updated 2014-01-24 08:58 UTC by Marcin Borkowski
2014-07-25 What is Emacs, really
This might be old news for more seasoned Emacs users, but as I have been using it for only a bit more . . . what Emacs really is. Many people think it's a text editor; that's not 100% true. There's also a joke . . . then? It is a DIY kit for building Your Personal Text Editor™. It comes with a default one, which is . . .
2K - last updated 2014-07-25 10:38 UTC by Marcin Borkowski
2014-08-08 A problem with a command with an optional star
TL;DR: I wanted to be smart, and it backfired. I'm currently writing a (longish) document on mathematics. . . . go – the {{{\@ifstar}}} macro is a low-level, LaTeX2e concept.) It seems that there's no way out of . . . I can write {{{B_{\dH} }}}(which is cleaner LaTeX syntax anyway), but I'm curious whether there's . . . //Edit//: yes, there //is// a way, as [[http://tex.stackexchange.com/a/195447/5626|this übercool answer]] . . . from [[http://tex.stackexchange.com/users/4427/|Enrico Gregorio]] . . .
3K - last updated 2014-08-08 10:13 UTC by Marcin Borkowski
2014-08-16 Catastrophic, lamentable idiosyncrasy
Some time ago, I submitted a paper to a mathematical journal. I downloaded the {{{Instruction4authors.pdf}}}, . . . a template and the LaTeX class file. Then, I started to look at them. Then, . . . (compiled from three places there): <LaTeX-source wrong> \textheight=8.2 true in \textwidth=5.0 . . . by the associate editor name)} </LaTeX-source> (Not to mention that {{{true}}} declarations . . . CategoryEnglish, CategoryBlog, CategoryLaTeX . . .
3K - last updated 2014-08-16 20:29 UTC by Marcin Borkowski
2014-09-13 TeX input method
Some time ago, someone on the Emacs mailing list [[http://lists.gnu.org/archive/html/help-gnu-emacs/2014-09/msg00034.html|asked]] . . . bit surprised, though, that nobody mentioned the TeX input method. Input methods are Emacs' ways of . . . or Korean languages.) In my setup, I have the TeX input method as the default (this can be achieved . . . e.g. by putting {{{(setq default-input-method "TeX")}}} in your {{{init.el}}}). (Normally, you don't . . . (but noticeable) gain. The real strength of the TeX input method is in typing math symbols. Try it . . .
2K - last updated 2014-09-13 20:18 UTC by Marcin Borkowski
2014-09-20 Smart ties in Emacs
As all TeX users know, in all flavors of TeX you use the tilde ({{{~}}}), called a "tie" in /The TeXbook/, . . . them interactively or after typing/yanking some text. But what I sometimes do is yank some short fragments . . . of text from various sources, or just forget to type a . . . 'self-insert-command)) (eval-after-load 'tex '(define-key TeX-mode-map "~" 'electric-tie)) }}} . . .
2K - last updated 2014-09-20 11:08 UTC by Marcin Borkowski
2014-09-27 show-paren-mode
For today, I only have a short tip. Sorry;-). I guess many Emacs users know about {{{show-paren-mode}}}, . . . before {{{abc}}} is). Its a bit of a PITA for TeX users - yet another reason I'll have to do some . . . work on Emacs' AUCTeX mode (though I'm not sure how to resolve this one). . . . CategoryBlog, CategoryEmacs, CategoryTeX . . .
2K - last updated 2014-09-27 21:19 UTC by Marcin Borkowski
2014-10-18 Version Control Systems
It is very often the case that one works on a certain document (it might be a scientific paper, it might . . . of your paper under filenames like {{{paper-v1.tex}}}, {{{paper-v2.tex}}}, ..., {{{paper-v23.tex}}} . . . (actually, a better idea is to use {{{paper-v01.tex}}} – the padding zeros make lexicographic sorting . . . better results). Or better, {{{paper-2014-10-18.tex}}}, using the //ISO 8601// standard. But this method . . . programmers, they are very good at dealing with text files. But TeX files //are// text files, so they . . .
5K - last updated 2014-10-19 00:23 UTC by Marcin Borkowski
2014-10-28 Single vs double spaces
Now don't get me wrong: I have nothing personal against those strange people who end their sentences . . . and – if needed – replacing spaces in the yanked text as necessary, but hey, I only had 15 minutes for . . .
2K - last updated 2014-10-28 20:54 UTC by Marcin Borkowski
2014-11-15 LaTeX-narrow-to-environment
Hitting {{{C-x n C-h}}} gives a short overview of what narrowing commands are there available in Emacs. . . . I hoped) narrow to the current environment in LaTeX. This is Emacs, however, so why not fix this problem? . . . Here's a {{{LaTeX-narrow-to-environment}}} function I wrote some . . . time ago. {{{ (defun LaTeX-narrow-to-environment (&optional count) "Narrow . . . buffer to current LaTeX environment (or COUNT environments around point)" . . .
2K - last updated 2014-11-15 05:21 UTC by Marcin Borkowski
2014-11-22 From Ido to Icicle – first steps
I had this in my {{{init.el}}}: {{{ (setq ido-create-new-buffer 'always) (ido-mode 1) (ido-everywhere . . . which interferes with {{{next-error}}} in AUCTeX. Not a big deal, there are other bindings for that. . . .
2K - last updated 2014-11-22 12:01 UTC by Marcin Borkowski
2014-11-29 async-shell-command and friends
I have quite a busy time lately due to some deadlines, so today there's only a short tip. I used to use . . . respectively. (For pdfs -- and LaTeX -- I also put this in my {{{init.el}}}: {{{ (setq . . . '(("\\.pdf\\'" "evince") ("\\.tex\\'" "pdflatex"))) }}} so that I can {{{!}}} or . . . {{{&}}} on a LaTeX or pdf file and just hit {{{RET}}}.) That's it . . . CategoryBlog, CategoryEmacs, CategoryLaTeX . . .
1K - last updated 2014-11-29 21:24 UTC by Marcin Borkowski
2014-12-06 Announcement – Org-edu-HTML
//This is more or less a copy of a [[https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00494.html|message]] . . . - two backends: I plan to create also a LaTeX variant, so that it would be easy for users to . . . answers (for the teacher's copy). Again, the LaTeX exporter would do the bulk of the job. - hopefully, . . . CategoryEmacs, CategoryOrgMode, CategoryLaTeX . . .
4K - last updated 2014-12-06 15:43 UTC by Marcin Borkowski
2014-12-13 Escaping madness
I was writing a part of my [http://mbork.pl/2014-12-06_Announcement_%E2%80%93_Org-edu-HTML|Org-edu-HTML] . . . this (which I based on {{{org-html-encode-plain-text}}}, which incidentally is a very nice example . . . {{{ (replace-regexp-in-string "\\\\" "\\\\" text t t) }}} It should be more or less clear what . . .
2K - last updated 2014-12-13 10:42 UTC by Marcin Borkowski
2014-12-20 Grepping from within Emacs
It is a well-known fact that a hacker's life without {{{grep(1)}}} would be rather terrible. It is //extremely// . . . buffer causes Emacs to show the match in context. Now the disadvantage to this is that you have . . .
3K - last updated 2014-12-20 15:16 UTC by Marcin Borkowski
2014-12-27 Info dispatch
There has been some talk about ditching (tex)info in favor of some new shiny thingy called Asciidoc. . . .
3K - last updated 2014-12-27 10:45 UTC by Marcin Borkowski
2015-01-03 New Emacs
"Breaking" news;-): long after everybody else, I decided to upgrade my Emacs. I started by cloning the . . . I had was with [http://www.gnu.org/software/auctex/|AUCTeX], but I deleted it (using Emacs' package . . .
2K - last updated 2015-01-04 02:03 UTC by Marcin Borkowski
2015-01-10 A few random Emacs tips
I've quite busy recently, so instead of a full-blown post I'll share just a few random Emacs tips. Hopefully . . . C-3") 'server-edit)}}}? # Wouldn't you like AUCTeX's {{{C-c C-c}}} not to ask whether to save the . . . file you are editing? Put {{{(setq TeX-save-query nil)}}} in your config. # This is trivial, . . .
2K - last updated 2015-01-10 23:00 UTC by Marcin Borkowski
2015-01-17 A quick-and-dirty hack with a dollar sign
I sometimes yank some fragments of text into my LaTeX files. This creates some problems, which can be . . . a formula from a pdf and yanking it into a LaTeX file will Just Work™, will be seriously disappointed. . . . Converting such yanked formulae to correct LaTeX syntax is a painful process. One can, however, . . . I came up with this solution: {{{ (defun TeX-smart-dollar (count) "Insert a dollar sign (first . . . count) (insert "$"))) (eval-after-load 'tex '(define-key TeX-mode-map (kbd "$") 'TeX-smart-dollar)) . . .
2K - last updated 2015-01-17 23:30 UTC by Marcin Borkowski
2015-01-21 Tree Edit Distance
Today I attended a //very// interesting lecture on so-called [[http://www.inf.unibz.it/dis/projects/tree-edit-distance/|tree . . . world! CategoryEnglish, CategoryBlog, CategoryLaTeX, CategoryEmacs . . .
5K - last updated 2015-01-21 21:32 UTC by Marcin Borkowski
2015-02-14 Counting visible characters
There was a discussion on the ConTeXt mailing list recently about counting visible characters in a PDF . . . file. This is easily reduced (by the {{{pdftotext}}} utility) to the problem of counting visible . . . characters in a text file. Just for fun, I decided to do this in Elisp. . . . too, e.g. it takes into account all the folded text in Org buffers. I don't exactly know how to overcome . . . is more than 300 kB long – quite a feat for a text file), and it took my function one or two seconds . . .
3K - last updated 2015-02-14 20:26 UTC by Marcin Borkowski
2015-02-21 Lorem ipsum dolor sit Emacs
As many LaTeX users know, sometimes you just need some dummy text so that you can test a font, a layout . . . so I might write my own version some day (LaTeX's {{{lipsum}}} is fully deterministic, and I prefer . . . 'identity (nth (random (length lorem-ipsum-text)) lorem-ipsum-text) lorem-ipsum-sentence-separator) . . . CategoryEmacs, CategoryOrgMode, CategoryTeX . . .
3K - last updated 2015-02-21 22:15 UTC by Marcin Borkowski
2015-02-28 Math examples in TeX, part I
I'm currently coauthoring an introductory book on LaTeX. (Yes, yet another one. But apparently there . . . \egroup \par\smallskip\noindent \makebox[0.48\textwidth]{\texttt{#1}}\hfill \framebox[0.48\textwidth]{$\scantokens{#1}$}\par\smallskip . . . is probably self-explanatory for more seasoned TeX hackers, but let me explain it for the beginners . . . in a box, and then the real fun begins. We use eTeX's {{{\scantokens}}} to //reinterpret// the argument . . . something impossible to do in Knuth's vanilla TeX.) This way, all the special characters (like the . . .
3K - last updated 2015-02-28 10:42 UTC by Marcin Borkowski
2015-03-28 window-configuration-to-register
Most often I work on a netbook with a small screen. In such a situation every line is precious. That's . . . Still, sometimes I'm studying a function whose text barely fits in the limited room I have. I often . . .
2K - last updated 2015-03-29 00:41 UTC by Marcin Borkowski
2015-04-04 The geometry package cheat sheet
One of the problems I've always had with the {{{geometry}}} package is that I couldn't remember the names . . . am/are working on a (yet another) book on LaTeX, I decided that it's a good opportunity to solve . . . so that the names do not interfere with (La)TeX dimen registers! {{{ \documentclass{article} \usepackage{tikz} . . . \node(#2) at ($(#3)!0.5!(#4)+(0,-#1)$) {\texttt{#2}}; \draw[<-] ($(#3)+(0,-#1)$) -- (#2); . . . at ($(#3)!0.5!(#4)+(#1,0)$) {\texttt{#2}}; \draw[<-] ($(#3)+(#1,0)$) -- (#2); . . .
4K - last updated 2015-04-04 06:43 UTC by Marcin Borkowski
2015-04-11 Proofs and refutations
No, I will not write about the famous book by Lakatos. I will write about proofs, or rather “proofs”, . . . often not really proofs. This week I read two texts by two different people, which confirm what I’ve . . .
7K - last updated 2015-04-11 19:41 UTC by Marcin Borkowski
2015-04-25 Some Dired goodies
Most Emacs users know that Dired – while atypical – is a perfectly reasonable file manager, with quite . . . '(("\\.pdf\\'" "evince") ("\\.tex\\'" "pdflatex") ("\\.ods\\'\\|\\.xlsx?\\'\\|\\.docx?\\'\\|\\.csv\\'" . . .
4K - last updated 2015-04-25 10:34 UTC by Marcin Borkowski
2015-05-02 BachoTeX 2015
On Wednesday I came back from Bachotek, where the annual Polish TeX Users' Group conference is held. . . . talk about the project I'm involved in: a textbook on LaTeX aimed at university students. (There . . . /that/ many of those in Polish.) If you are a TeX user/hacker, and happen to live in Europe, I'd . . . Bachotek. It's so much fun – hanging around with TeX (and design) hackers, listening to talks on various . . . stuff (usually, but not always, TeX-related – Willi Egger had an amazing talk about . . .
2K - last updated 2015-05-03 00:30 UTC by Marcin Borkowski
2015-05-16 which-function and LaTeX
There is a very nice minor Emacs mode for programmers: {{{which-function-mode}}}. It is especially useful . . . While I really like the fact that it works in LaTeX files (thanks to AUCTeX's support for {{{imenu}}}), . . . to be straightforward, though: {{{ (add-hook 'TeX-mode-hook '(lambda () (make-local-variable 'which-func-cleanup-function) . . . CategoryBlog, CategoryEmacs, CategoryLaTeX . . .
4K - last updated 2015-05-16 22:43 UTC by Marcin Borkowski
2015-05-23 Math examples in TeX, part II
Some time ago, [[http://mbork.pl/2015-02-28_Math_examples_in_TeX%2c_part_I|I wrote about a macro to typeset . . . examples of math typesetting in LaTeX]]. I mentioned then that there's a bit more to . . . \egroup \par\smallskip\noindent \makebox[0.48\textwidth]{\texttt{#1}}\hfill \framebox[0.48\textwidth]{% . . . touches – but for today that's it. Happy TeXing! CategoryEnglish, CategoryBlog, CategoryTeX, . . . CategoryLaTeX . . .
3K - last updated 2015-05-23 00:02 UTC by Marcin Borkowski
2015-05-23 Math examples in TeX, part III
In the [[2015-02-28 Math examples in TeX, part I|two]] [[2015-05-23 Math examples in TeX, part II|previous]] . . . examples of math typesetting for the book on LaTeX I was coauthoring. I promised that there will be . . . that should not appear anywhere in (legal) LaTeX code then? I was thinking about various possibilities, . . . why not use some //control character// (not in TeX sense, but in ASCII sense)? Well, there is that . . . TeX syntax for control characters, where {{{^^A}}} . . .
2K - last updated 2015-08-15 00:27 UTC by Marcin Borkowski
2015-05-30 Some message-mode goodies
A few months ago I switched with my email to Emacs. My history of email started with pine, then briefly . . . without any mail client configured), type some text, mark a region, press {{{C-c M-m}}} and see for . . .
3K - last updated 2015-05-30 07:51 UTC by Marcin Borkowski
2015-06-06 Mickey Petersen's Mastering Emacs book
After a few months of waiting (and me studying the preview), Mickey Petersen's book “Mastering Emacs” . . . large (270+ pages), very nicely typeset in LaTeX, and full of good advice on using Emacs. After . . .
2K - last updated 2015-06-06 15:19 UTC by Marcin Borkowski
2015-06-13 The LaTeX book is out
Some time ago [[http://mbork.pl/2015-02-28_Math_examples_in_TeX%2c_part_I|I alluded]] [[http://mbork.pl/2015-05-23_Math_examples_in_TeX%2c_part_II|to . . . the fact]] that I'm coauthoring a book on LaTeX. Well, I'm proud to say that [[http://www.ptm.org.pl/latex-ksiazka-kucharska|the . . . and me]] is now out. Why write yet another LaTeX introductory guide when there seem to be so many . . . their bachelor's or master's theses with LaTeX. We have also assumed that our readers are not . . . fascinated by typography or TeX hacking. That is why we omitted quite a few things . . .
3K - last updated 2015-06-13 08:26 UTC by Marcin Borkowski
2015-06-20 Fast-calc
I've been a fan of accounting for a long time now. My affair with bookkeeping started when I studied . . . sold on the idea of keeping my data in plain text, I instantly fell in love. (BTW, GnuCash keeps . . .
6K - last updated 2015-06-20 20:32 UTC by Marcin Borkowski
2015-06-27 Arriving at Amen
I do not often write book reviews on my blog (in fact, this is probably the first time;-)). However, . . . are no surprise in /any/ modern text on Catholicism, [[https://en.wikipedia.org/wiki/Orson_Scott_Card|OSC]], . . . Munroe]] are. But what’s so special about the text itself, apart from the author? As I said, it’s . . .
4K - last updated 2015-06-27 08:38 UTC by Marcin Borkowski
2015-07-04 C-x 4 bindings
Today I’m going to write about some lesser-known Emacs bindings, namely ones beginning with {{{C-x 4}}}. . . . narrowed to some fragment (be it a defun, a LaTeX section, or an Org-mode subtree). Sometimes, however, . . .
3K - last updated 2015-07-04 12:49 UTC by Marcin Borkowski
2015-07-11 A memoir problem
Usually I write about (some kinds of) success stories here: good LaTeX packages, my own tricks, etc. . . . a book looking better than the default LaTeX settings (they //might// work for a scientific . . . thumb indices. Well, there are quite a few LaTeX packages for them; after a short research, I settled . . . and {{{\settypeblocksize}}} the size of actual text. (Also, for the sake of completeness: you’ll most . . . else//, especially from the “let’s change how LaTeX deals with the fundamental stuff” department. Or . . .
4K - last updated 2015-07-11 22:57 UTC by Marcin Borkowski
2015-07-25 Multiple indices in a LaTeX document with splitidx
An often requested feature in a book is multiple indices. Typically, there are separate indices of notions . . . unsurprisingly, I regret to say), standard LaTeX provides only one bare-bones index. There are of . . . The reason for that is simple: standard LaTeX can’t open too many files simultaneously, so if . . . versions: a C one, a Java one, a Lua one and a TeX one, though the latter is limited in its possibilities) . . . simple example. Let’s make an {{{indices-example.tex}}} file like this: {{{ \documentclass{article} . . .
6K - last updated 2015-07-25 10:39 UTC by Marcin Borkowski
2015-09-05 EmacsConf2015 - afterthoughts, and a book project
So we’re after [[http://emacsconf2015.org/|EmacsConf 2015]]. The conference was //great//. The talks . . . coauthor, which is an [[http://www.ptm.org.pl/latex-ksiazka-kucharska|introductory text on LaTeX]] . . . you use to //live// in Emacs, not only //edit text//. That is not covered by Mickey's book, so I . . . ebook formats are not best suited for technical texts. OTOH, I’d really like to have a physical book, . . .
5K - last updated 2016-04-24 06:09 UTC by Marcin Borkowski
2015-10-10 A trouble with Org-mode HTML export
I'm not sure whether this is going to be useful to anybody but me, but here's a problem that cost me . . . turns out that the function {{{org-html-format-latex}}}, which is responsible for converting LaTeX fragments . . . (make-temp-name (expand-file-name "latex" temporary-file-directory))) }}} Now, when I used . . .
3K - last updated 2015-10-10 21:44 UTC by Marcin Borkowski
2015-10-24 Yanking from Calc
Using Emacs Calc for calculations is one thing. Yanking the results into the document is another, and . . . formula, the buffer doesn’t have to be in any of TeX modes), put the point somewhere in this formula, . . .
2K - last updated 2015-10-24 22:53 UTC by Marcin Borkowski
2015-10-31 Smart comma and other punctuation
I do a lot of natural text editing in Emacs. And by //editing// I mean //editing//, i.e., it is often . . . the case that I edit texts written by someone else. This is a fine distinction: . . . for instance, when I type the text myself, I //usually// put the commas where they . . . belong, but when I edit someone else's text, I often need to //insert// a comma where it should . . . map you want, for instance {{{ (eval-after-load 'tex '(define-key TeX-mode-map "," 'smart-self-insert-punctuation)) . . .
3K - last updated 2015-10-31 23:10 UTC by Marcin Borkowski
2015-11-14 A simple unfilling function
While the concept of filling text (i.e., putting hard newlines so that no line is longer than some limit) . . . the question about how to //unfill// some text (i.e., change all hard newlines to spaces) comes . . . when it turned out that I need to unfill some text programatically. So I went and implemented a simple . . . of two or more newlines (in the spirit of TeX, Org-mode and Emacs itself, where a “paragraph” . . .
3K - last updated 2015-11-14 07:20 UTC by Marcin Borkowski
2015-11-21 The Emacs widget library and automatic modification of editing fields
A long time ago, I read about the [[https://www.gnu.org/software/emacs/manual/html_mono/widget.html|Emacs . . . turn them into something compatible with our LaTeX template etc.). We don't have any automatic submission . . . the position of the beginning and the end of the text that changed, and the length of the text //before// . . .
9K - last updated 2015-11-22 00:47 UTC by Marcin Borkowski
2015-12-18 Star Wars crawl in Emacs
As I [[2013-09-19_That's_no_moon_(en)|mentioned a while ago]], I’m not an uncritical fan of Star Wars. . . . this little piece of code. Try selecting some text buffer and launching the {{{star-wars-scroll}}} . . . sizes for that; but as it is, it works even in text terminals, which is cooler. {{{ (defvar sw/substitution-list . . . it tries to preserve the legibility of the text as long as possible. For instance, vowels are . . .
6K - last updated 2015-12-18 18:02 UTC by Marcin Borkowski
2016-01-09 mrr-auto-replace
It is often the case that I need to do some heavy search-and-replace in LaTeX files. Usually, this is . . . and the person who wrote it does not know LaTeX very well. Fortunately, the errors in such files . . . "\\\\[" "\\\\]") ("\\$" "\\\\(" "\\\\)") ("~" texmathp "") ("\\<\\([aeiouwzAEIOUWZ]\\)\\s +" (lambda . . . () (not (texmathp))) "\\1~") "~\\\\cite")) }}} The first two . . . CategoryBlog, CategoryEmacs, CategoryTeX . . .
5K - last updated 2016-01-09 12:59 UTC by Marcin Borkowski
2016-01-30 Dimming out tildes in AUCTeX
I often write LaTeX in Emacs with AUCTeX. One thing [[2014-09-20 Smart ties in Emacs|I use a lot is tildes]] . . . (these little {{{~}}} signs, which for LaTeX mean "unbreakable space"). This is justified; first . . . a bit more difficult to actually read the LaTeX source. There is a way to help with that, though: . . . I spent some time skimming through {{{font-latex.el}}} to see whether there exists some knob I could . . . Fortunately, there is a universal (i.e., not LaTeX-specific) kind of knob for such things in Emacs: . . .
3K - last updated 2016-01-30 22:17 UTC by Marcin Borkowski
2016-02-20 Iedit mode
[[2016-02-13 Looking for keywords|A week ago]], I mentioned Iedit mode. This is a real gem. It’s not . . . what is selected for iedit and how the selected text is searched for are a bit complicated. For instance, . . . term (plus one line above and below for context – with prefix argument, you can change the number . . . of these context lines) are actually displayed. Another nice feature . . .
3K - last updated 2016-02-20 06:34 UTC by Marcin Borkowski
2016-03-08 Let’s start fun – basic layout
OK, so I finally started. Since I was terribly procrastinating with actually doing anything with this . . . or e.g. the [[http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf|user's guide . . . for the Beamer LaTeX class]] or the famous [[http://mirrors.ctan.org/graphics/pgf/base/doc/pgfmanual.pdf|TikZ . . . Android Studio user’s guide, or an “official” textbook on Android development. If you know about . . . (And maybe some day I’ll understand what a “context” is, and it will join the crowd of things [[https://en.wikiquote.org/wiki/John_von_Neumann#/media/File:John_von_Neumann_ID_badge.png|I . . .
6K - last updated 2016-03-08 21:31 UTC by Marcin Borkowski
2016-03-11 Drawing is easy
As could be expected, getting back with a fresh mind on the next morning is a good advice. I can now . . . pl.mbork.logeox; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; . . . Paint paint = new Paint(); public DrawingView(Context context) { super(context); } // The other two . . . are what I missed!!! public DrawingView(Context context, AttributeSet attrs) { super(context, . . . attrs); } public DrawingView(Context context, AttributeSet attrs, int defStyleAttr) . . .
9K - last updated 2016-03-11 21:52 UTC by Marcin Borkowski
2016-03-16 Back to sanity
//I am smiling a great smile. The smile of a man who f..ked with his car and didn't break it.// (Andy . . . fluent in Turbo Pascal. (I even made my own hypertext “browser” in Turbo Vision. Well, it wasn’t real . . . hypertext, since the links were not associated with a particular . . . place in the text, but with the article as a whole. But it worked . . .
6K - last updated 2016-03-16 17:53 UTC by Marcin Borkowski
2016-03-22 Where I am now and where I am going
OK, so if you know me personally, please stop reading for a moment now and imagine me singing to the . . . write-first-compile-then approach of LaTeX and friends, this doesn’t make much sense here: . . . used when the object is used in a “string context”, like in {{{ Log.d(TAG, "Object value is " + . . .
7K - last updated 2016-03-22 21:08 UTC by Marcin Borkowski
2016-04-02 Pen up and down, smoke test and UI considerations
Yesterday was an interesting day for Logeox. First of all, I added the pen up/pen down feature. It was . . . It has one drawback, though: it is a //text// button and not an //image// button, and I wanted . . . to replace all my text buttons with image buttons. Google says there . . .
4K - last updated 2016-04-02 19:29 UTC by Marcin Borkowski
2016-04-09 Choosing the unit turning angle
I think this is one of these tiny details which make the UX better or worse, so let us look a bit into . . . be a //very// bad choice. Why? Because in the context of //drawing//, you really want to be able to . . .
5K - last updated 2016-04-09 11:17 UTC by Marcin Borkowski
2016-04-12 Showing some of those Async Shell Command buffers
[[2016-04-07_Hiding_those_annoying_Async_Shell_Command_buffers|Last time]], I showed how to make those . . . “solution” is extremely brittle and definitely a textbook example of bad practices – //don’t try this . . .
2K - last updated 2016-04-12 19:22 UTC by Marcin Borkowski
2016-04-14 Plans
It's been some time since I posted something Logeox-related – real life struck again, and I also had . . . make some icons for the buttons and change TextButtons to ImageButtons, * finally fix the horizontal . . .
3K - last updated 2016-04-14 18:21 UTC by Marcin Borkowski
2016-04-21 Pen up and down, reloaded
OK, so today a short post, since it’s quite late here. I thought that making a single button for toggling . . . Nothing like that. Here’s the question: if the text on the button says “on”, soes it mean that it . . .
1K - last updated 2016-04-21 20:18 UTC by Marcin Borkowski
2016-04-24 The conditional-save-excursion macro
One day I was writing a library of helper functions for writing messages (I will definitely share them . . . (see [[https://mitpress.mit.edu/sicp/full-text/sicp/book/node12.html|the first exercise here]]) . . .
5K - last updated 2016-04-24 06:09 UTC by Marcin Borkowski
2016-04-26 fill-single-char-nobreak-p
Since Emacs 24 (or so), Polish-speaking users got a very nice gift: a function called {{{fill-single-char-nobreak-p}}}, . . . Polish typography. Of course, when writing in LaTeX, it doesn't matter at all, since then you use ties . . . with some comments: {{{ ;;; ----- ;;; The TeX Magic Space mode equivalent for filling (word wrap) . . . ;; It is simplified `fill-french-nobreak-p' from textmodes/fill.el. ;; The function `fill-french-nobreak-p' . . . first appeared in textmodex/fill.el ;; rev. 1.132, and the single-letter . . .
4K - last updated 2016-04-26 19:34 UTC by Marcin Borkowski
2016-04-30 Layout rehaul
Some time ago I wrote about some ideas for a better layout. First of all, I wanted a switch for pen up/pen . . . I want to change them, I have to manually run LaTeX on my TikZ file (which uses the {{{standalone}}} . . . On the other hand, I’m hesitant to put the TeX/TikZ source files instead of the generated bitmaps . . . clone my project and play with it: the whole LaTeX installation (not to mention ImageMagick’s {{{convert}}} . . . tries that, I don’t want to make anyone install TeX only to generate a few icons...) I still don’t . . .
4K - last updated 2016-04-30 18:27 UTC by Marcin Borkowski
2016-05-12 Make yourself known – summary
So it’s over. I thought that a nice way of finishing the series of posts related to the [[http://devstyle.pl/daj-sie-poznac/|contest]] . . . a lot – but I’m afraid that e.g. quite a lot of text in AS is un-copyable, which is a terrible shame, . . .
3K - last updated 2016-05-12 05:39 UTC by Marcin Borkowski
2016-05-30 Jeżycjada mistyczna – wprowadzenie
//First, a note to my English-speaking readers: I am very sorry to tell you that this post is a beginning . . . of a series of Polish-only texts. (They are not going to be consecutive posts, . . .
7K - last updated 2016-05-30 06:19 UTC by Marcin Borkowski
2016-06-13 Displaying pdfs on the right
Some time ago I decided that I'll give [[https://github.com/politza/pdf-tools|PDF tools]] a shot. Wow. . . . PDF Tools out. Especially if you do a lot of LaTeX work in AUCTeX (like I do) and/or if you need to . . . same problem): when I pressed {{{C-c C-v}}} ({{{TeX-view}}}), the pdf was shown in a window //below// . . . CategoryBlog, CategoryEmacs, CategoryTeX . . .
6K - last updated 2016-06-13 20:14 UTC by Marcin Borkowski
2016-07-04 Compiling a single Beamer frame in AUCTeX
Some time ago I basically stopped using Beamer. I turned to reveal.js, and did a few presentation in . . . back. It was kind of refreshing to play with LaTeX and TikZ again. Of course, I’m using Emacs and . . . AUCTeX, which is really great. (It will be even better . . . when I finally start contributing to AUCTeX. I have a few functions which make certain TeX-related . . . – and I can’t wait to incorporate them into AUCTeX. But this is again another story – and a long one, . . .
6K - last updated 2016-07-04 20:44 UTC by Marcin Borkowski
2016-08-22 Jan Góra OP on work and inspiration
I was reading an [[http://www.miesiecznik.wdrodze.pl/?mod=archiwumtekst&id=15858|article]] (in Polish) . . . the first, sketchy versions of music, graphics, texts, and circulated them immediately to everyone . . .
3K - last updated 2016-08-22 08:58 UTC by Marcin Borkowski
2016-09-05 Many variants of a Beamer presentation – part I
Some time ago I decided to prepare slides for a certain lecture using Beamer. I thought it would be nice . . . I did not want to change the settings in my TeX file all the time to produce various variants. . . . etc. This works fine, with one exception: AUCTeX’s “partial compilation” feature (i.e., the {{{TeX-command-region}}} . . . following three files, {{{presentation-slides.tex}}}, {{{presentation-preamble.tex}}} and {{{presentation-body.tex}}}. . . . imagine what {{{presentation-slides-with-notes.tex}}} might look like, and I will show a working example . . .
5K - last updated 2016-10-03 03:40 UTC by Marcin Borkowski
2016-10-03 Many variants of a Beamer presentation – part II
Some time ago I wrote [[2016-09-05 Many variants of a Beamer presentation – part I|a post about compiling . . . partially compiling the presentation with AUCTeX, we //want// it to be part of the compiled {{{_region_.tex}}} . . . preamble//, in the form of the {{{[ignorenonframetext]}}} option, which is needed in the case of partial . . . compilation in AUCTeX (since then the compiled file is constructed from . . . region). So, here is the {{{presentation-slides.tex}}} file again. {{{ % presentation-slides.tex \documentclass[ignorenonframetext]{beamer} . . .
4K - last updated 2016-10-03 03:43 UTC by Marcin Borkowski
2016-10-10 Fast font changes in AUCTeX
== Fast font changes in AUCTeX This is a really simple tip, but it saves a lot of dull work. In AUCTeX, . . . you can mark some text and press {{{C-c C-f C-e}}} to put an {{{\emph}}} . . . C-f C-h}}} to see other options, divided into text and math modes. But wait, there's more! If you . . . {{{C-u}}}), instead of marking up the region, AUCTeX replaces the //most nested// font command around . . . is marked with {{{-!-}}}), this: {{{ Hello \textit{wor-!-ld!} }}} becomes this: {{{ Hello \emph{wor-!-ld!} . . .
2K - last updated 2016-10-10 03:45 UTC by Marcin Borkowski
2016-10-30 LaTeX-paragraph-commands
When I use AUCTeX to edit Beamer presentations, I usually want {{{\pause}}} to be on its own line. Therefore, . . . I added this to my {{{init.el}}}: {{{ (setq LaTeX-paragraph-commands '("pause" "blpause")) }}} The . . . {{{LaTeX-paragraph-commands}}} variable holds a list of . . . me a bit of typing. That's it for today. Happy TeXing! CategoryEnglish, CategoryBlog, CategoryEmacs, . . . CategoryTeX, CategoryLaTeX . . .
1K - last updated 2016-10-30 05:28 UTC by Marcin Borkowski
2016-11-07 Displaying nonexistent text in Emacs buffers
Some time ago, I received yet another email containing a date in the MM/DD/YY format, which is probably . . . That leaves me with one option I know: //text properties//. Text properties are an incredibly . . . implementation, but you can at least think of text properties like that.) And a property list is . . . can actually affect the way Emacs displays the text in many ways (like change the color or the face, . . . is the “display” property. There are numerous text properties in Emacs, and since they are stored . . .
6K - last updated 2016-11-07 14:28 UTC by Marcin Borkowski
2016-12-04 Making C-c C-j in AUCTeX do something more useful
In AUCTeX’s LaTeX mode, {{{C-c C-j}}} is by default bound to {{{LaTeX-insert-item}}}. By default, it . . . //can’t// discover it; the option is called {{{LaTeX-item-list}}}, and it can be found using {{{M-x . . . you never suspected to exist! Basically, {{{LaTeX-item-list}}} is an alist whose keys are environment . . . gets rebuilt in every new document. Actually, LaTeX mode initializaton is a complicated business. I . . . know, because I grepped the source for {{{LaTeX-item-list}}} and found the {{{LaTeX-common-initialization}}} . . .
3K - last updated 2016-12-04 19:05 UTC by Marcin Borkowski
2016-12-12 momentary-string-display
[[2016-11-07_Displaying_nonexistent_text_in_Emacs_buffers|Some time ago]] I wrote about making Emacs . . . without actually modifying any buffer. I used text properties then, and I mentioned that a similar . . . pressing that character will make the temporary text disappear – but the character itself won’t be . . . Emacs is a [[2014-07-25 What is Emacs, really|text editor toolkit]] after all, not that bad either. . . .
5K - last updated 2016-12-12 06:43 UTC by Marcin Borkowski
2017-03-18 Deleting all instances of a LaTeX environment
Today, someone [[http://lists.gnu.org/archive/html/auctex-devel/2017-03/msg00027.html|asked on the AUCTeX-devel . . . semantics|save-mark-and-excursion]]. Also, {{{LaTeX-environment-list-filtered}}} is used to get the . . . of environments for completion. {{{ (defun LaTeX-delete-environment (env) "Delete all instances . . . (completing-read "Environment to delete: " (LaTeX-environment-list-filtered)))) (save-mark-and-excursion . . . env) nil t) (unless (nth 4 (syntax-ppss)) (LaTeX-mark-environment) (delete-region (region-beginning) . . .
2K - last updated 2017-03-18 20:56 UTC by Marcin Borkowski
2017-03-27 Moving to a certain line on the screen
A short tip: if you want to quickly move the point to the top, center and/or bottom of the current window, . . . the point at any line (without scrolling the text). Quite handy (sometimes). On the other hand, . . .
1K - last updated 2017-03-27 19:06 UTC by Marcin Borkowski
2017-04-01 compilation-in-progress
I use [[https://www.gnu.org/software/auctex/|AUCTeX]] pretty heavily; in fact, it was one of the first . . . fame) [[https://www.mail-archive.com/auctex%2540gnu.org/msg06188.html|shared this simple solution]]: . . . CategoryBlog, CategoryEmacs, CategoryTeX . . .
1K - last updated 2017-04-01 06:04 UTC by Marcin Borkowski
2017-04-24 Many variants of a Beamer presentation – part III
Some time ago I [[2016-09-05 Many variants of a Beamer presentation – part I|wrote]] [[2016-10-03 Many . . . that automatically for all slides, see [[https://tex.stackexchange.com/q/350020/5626|here]].) {{{ \documentclass{article} . . . }}} CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX, CategoryBeamer . . .
3K - last updated 2017-04-24 16:58 UTC by Marcin Borkowski
2017-05-01 show-some-last-messages
I am pretty sure I am not the only one annoyed by the fact that I can’t see more than one message in . . . however, like the fact that it mangled the text in the buffer I’m in, even if only temporarily. . . .
3K - last updated 2017-05-01 05:05 UTC by Marcin Borkowski
2017-05-08 TUG-BachoTeX 2017
Last weekend I attended the Polish TeX meetup in Bachotek again. This time, I was there for the whole . . . liked Barbara Beeton’s talk about debugging LaTeX problems (in Emacs!), Adam Twardoch’s talk about . . . And by the way, I also gave a talk about my (TeX and Emacs) work for //Wiadomości Matematyczne//, . . . I’m afraid I won’t be able to attend BachoTeX any time soon again, but maybe in a few years... . . . the con! CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX . . .
2K - last updated 2017-05-15 05:46 UTC by Marcin Borkowski
2017-06-26 de Gruyter style and Package babel Error You haven't defined the language ngerman yet
A few days ago, I decided to submit a paper to a journal ran by //de Gruyter//. They have their LaTeX . . . out that what needs to be done (at least in TeXlive) is to install the {{{hyphen-german}}} package. . . . (Admittedly, if you and all your testers run a TeX installation geared toward German users, that might . . . now?) CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX . . .
1K - last updated 2017-06-26 04:34 UTC by Marcin Borkowski
2017-07-02 Using yasnippet programmatically
Some time ago I was writing an Emacs function to insert a certain template into a buffer. The template . . . might have guessed) for creating skeletons of LaTeX files, where after creating the file the program . . .
3K - last updated 2017-07-02 04:30 UTC by Marcin Borkowski
2017-07-09 current-prefix-arg
A [[http://lists.gnu.org/archive/html/auctex-devel/2017-03/msg00036.html|question]] that popped some . . .
4K - last updated 2017-07-09 08:13 UTC by Marcin Borkowski
2017-07-22 TeX-parse-macro
In [[2016-12-04 Making C-c C-j in AUCTeX do something more useful|one of my earlier posts]] I promised . . . to show how to prevent AUCTeX from putting braces after a command inserted with . . . {{{TeX-insert-macro}}}. The point is, you shouldn’t be . . . really using {{{TeX-insert-macro}}} //at all//. It is an interactive . . . want to do in an Elisp program, like running {{{TeX-after-insert-macro-hook}}} (or maybe you would? . . .
2K - last updated 2017-07-22 04:33 UTC by Marcin Borkowski
2017-08-07 demo-it recording
Some time ago I stumbled across a very nice library by Howard Abrams, called [[https://github.com/howardabrams/demo-it|demo-it]]. . . . is, I’d like to use {{{demo-it-insert}}} for “textual” stuff and explicit strings (like {{{C-x 1}}}) . . .
2K - last updated 2017-08-07 17:11 UTC by Marcin Borkowski
2017-08-28 Multiple cursors in Emacs
I am aware that I’m kind of late to this party, but I finally (after being taunted a few times by one . . . of my friends who uses Sublime Text) tried out Magnar Sveen’s [[https://github.com/magnars/multiple-cursors.el|multiple . . .
2K - last updated 2017-08-28 17:34 UTC by Marcin Borkowski
2017-09-04 LaTeX-mark-environments
Some time ago, I wrote about a [[2016-07-04 Compiling a single Beamer frame in AUCTeX|simple snippet]] . . . to compile only the current Beamer frame in AUCTeX. A few days ago, I’ve been asked how to compile . . . the tricky part is to //mark// them – while {{{LaTeX-mark-environment}}} accepts an argument, its meaning . . . too difficult to code what we want. {{{ (defun LaTeX-mark-environments (count) "Mark the current and . . . COUNT-1 following LaTeX environments." (interactive "p") (LaTeX-find-matching-begin) . . .
3K - last updated 2017-09-04 17:24 UTC by Marcin Borkowski
2017-09-11 My email capturing workflow
I’m constantly fiddling with my email workflow. Those of you who are //not// professional procrastinators . . . And “inbox kind of empty” means in this context: no unread messages for the //last week//. See . . .
4K - last updated 2017-09-11 09:42 UTC by Marcin Borkowski
2017-10-02 Converting TeX sequences to Unicode characters
I quite often deal with LaTeX files using stuff like {{{\'a}}} or {{{\"e}}}, and I really prefer having . . . via {{{C-x 8}}} prefix, or with the [[2014-09-13 TeX input method|TeX input method]]. It is not trivial, . . . but hey, it works, so who cares. {{{ (defvar TeX-to-Unicode-accents-alist '((?` . "grave") (?' . . . . breve") (?v . "with caron")) "A mapping from TeX control characters to accent names used in Unicode.") . . . MARK can be any character that can be used in TeX accenting commands." (let* ((letter (if (stringp . . .
4K - last updated 2017-10-02 18:14 UTC by Marcin Borkowski
2017-10-16 emacs-reveal
Some time ago, I learned from the Org-mode mailing list about a very interesting extension to the well-known . . . sense, at least in case of mathematics: using LaTeX (with Beamer, for instance) to show the steps of . . .
3K - last updated 2017-10-16 16:22 UTC by Marcin Borkowski
2017-10-23 Styles in TikZ
Many TeX users learned to love the great TikZ package. I used to be a great fan of Metapost (even back . . . of points. And yes, with {{{\write18}}} or LuaTeX (or just plain old makefiles), you don't have to . . . if one wants to have key-value syntax in LaTeX, one thing immediately comes to mind: the pgfkeys . . . which should then be easy to use within some TeX code. Happily, we have TeX.SE. [[http://tex.stackexchange.com/a/34318/5626|This . . . you want to use pgfkeys for customizing some LaTeX commands (not necessarily in connection with TikZ). . . .
5K - last updated 2017-10-23 19:26 UTC by Marcin Borkowski
2017-10-30 Pdf-tools and follow mode
Today I discovered an extremely cool feature of pdf-tools. Assume that you have a pdf file with annotations . . . yellow sticky-note-like thingies which show some text when hovered or clicked). Assume that they are . . . work for, and you have to modify the source LaTeX file accordingly. (This is a rather specialized . . . the list of annotations, and the other the text of the annotation the point is on. Cool! But wait, . . . moving point in that buffer not only shows the text of the current one, but also highlights it in . . .
2K - last updated 2017-10-30 18:59 UTC by Marcin Borkowski
2017-11-12 My email workflow – an addendum
Some time ago I wrote about [[2017-09-11 My email capturing workflow|my email capturing workflow]]. After . . . I've written that text, I noticed that my command does not work well . . .
2K - last updated 2017-11-12 13:07 UTC by Marcin Borkowski
2017-11-27 Org-mode radio targets
One of the interesting features of Org-mode is hyperlinks. For some documents, having many internal links . . . 2.1” or “Definition 3” or “equation (5)”. LaTeX has that pretty much solved (even core LaTeX, and . . . is especially cool that exporting (to HTML or LaTeX) preserves these links. I am pretty sure that radio . . . targets may be useful in many contexts other than boardgame rulebooks. The only downside . . .
3K - last updated 2017-11-27 16:40 UTC by Marcin Borkowski
2017-12-04 Embedding files in Org-mode
A few days ago, [[https://lists.gnu.org/archive/html/help-gnu-emacs/2017-12/msg00015.html|there was a . . . mailing list about a way to embed an image in a text file. Of course, the OP was instantly pointed . . .
3K - last updated 2017-12-04 12:58 UTC by Marcin Borkowski
2017-12-31 LaTeX pillory – macros everywhere
A few years ago, my frustration with what people do with (or to...) LaTeX made me start a (now rather . . . posts (in Polish) with the common theme of a “LaTeX pillory”. The name is somwhet misleading, since . . . the overhead is not worth it. What’s more, the LaTeX source becomes much less readable with this (there . . . welcome. CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX, CategoryLaTeXPillory . . .
2K - last updated 2017-12-31 06:34 UTC by Marcin Borkowski
2018-01-07 A small editing tool for work with AMSrefs
As I mentioned many times, I often edit LaTeX files written by someone else for a journal. One thing . . . has some rough edges here and there). (BTW, BibLaTeX was not as mature as it is today when we settled . . . 123}}}}. While quite unorthodox for a LaTeX command, it makes life easier for all people who . . . (which is a very common use case). Since LaTeX does not do proper pairing of brackets when parsing . . . CategoryBlog, CategoryEmacs, CategoryTeX, CategoryLaTeX . . .
4K - last updated 2018-01-07 20:22 UTC by Marcin Borkowski
2018-01-15 Counting LaTeX commands in a bunch of files
I hope that I want bore anyone to death with blog posts related to the journal I’m working for, but here’s . . . for //Wiadomości Matematyczne//. We accept LaTeX files, of course, but we have our own LaTeX class . . . do anything fancy, just stick with plain ol’ LaTeX. And one component of that message could be a list . . . of LaTeX commands people should stick to. (If you have never . . . where you get to look at other people’s LaTeX files, you probably have no idea about [[2017-12-31 . . .
9K - last updated 2018-01-15 05:08 UTC by Marcin Borkowski
2018-01-22 Info-edit
There was an interesting (and sometimes quite amusing) [[https://lists.gnu.org/archive/html/help-gnu-emacs/2018-01/msg00116.html|discussion . . . the discussion, I also learned that before {{{texinfo}}}, Info files were created and edited by hand. . . . {{{Info-edit}}} so that it would jump to the texinfo source instead. In my case (I have full Emacs . . .
3K - last updated 2018-01-22 04:31 UTC by Marcin Borkowski
2018-01-29 A simple script for shuffling exam questions
As we approach the end of the semester, my free time shrinks to nearly zero. Today I’m only going to . . . stdout in a form suitable for inclusion in a LaTeX file (after manually adding the {{{enumerate}}} . . .
3K - last updated 2018-01-29 20:52 UTC by Marcin Borkowski
2018-02-05 The death camps in Poland issue
In the spirit of [[2017-09-25 The Unconquered|another PSA about Poland]], I would like to mention to . . . concern), ask Wikipedia or any history textbook. Thank you. CategoryEnglish, CategoryBlog . . .
4K - last updated 2018-02-05 07:03 UTC by Marcin Borkowski
2018-02-12 append-next-kill
Today I’d like to share a simple trick which I learned a few days ago. It is well-known that if you perform . . . kill command kills //backward//, then the killed text is //prepended// to the kill ring entry. And in . . .
2K - last updated 2018-02-12 20:23 UTC by Marcin Borkowski
2018-03-03 pdf-annot-print-annotation-functions and Windows newlines
Some time ago [[2017-10-30_Pdf-tools_and_follow_mode|I wrote]] about how I use Andreas Politz's excellent . . . I admit) whether the annotation is written in LaTeX, and if yes, uses LaTeX to render it (you need . . . CategoryBlog, CategoryEmacs, CategoryTeX, CategoryLaTeX . . .
3K - last updated 2018-03-03 07:18 UTC by Marcin Borkowski
2018-03-10 A tip on yanking
I have a few longer posts in the works, but for today I want to share a simple trick. We Emacs users . . . {{{C-2 C-y}}}) inserts the //previous// killed text (much like {{{C-y M-y}}}), and also marks it as . . . Also, if you find yourself inserting various texts repeatedly, you might want to check out registers, . . . texts]] . . . things]]. And if you need to insert texts with variable elements (or cannot memorize one-letter . . .
2K - last updated 2018-03-10 05:14 UTC by Marcin Borkowski
2018-03-18 My Org-mode hydra
I mentioned a lot of times that I am a big fan of Org-mode clocking feature. Even if I clock some things . . . use Org-mode for writing everything – I know LaTeX fairly well and I use it for quite a few things . . .
2K - last updated 2018-03-18 05:01 UTC by Marcin Borkowski
2018-04-15 counsel-org-clock
Some time ago [[2018-03-18 My Org-mode hydra|I blogged about my Org-mode hydra]]. It turned out that . . . point is the command {{{counsel-org-clock-context}}}. When a clock is on, it just displays the path . . . I have now added {{{counsel-org-clock-context}}} to my Org-mode hydra, just to see how useful . . .
3K - last updated 2018-04-15 07:18 UTC by Marcin Borkowski
2018-05-07 Ten years of work in Wiadomości Matematyczne
I mentioned a few times on this very blog that I work for a certain journal, //Wiadomości Matematyczne//. . . . of my job there, and I [[2017-05-08 TUG-BachoTeX 2017|gave a talk]] on the joint Polish TeX Users . . . talk went public. If you are interested in LaTeX and want to learn something about what it looks . . . Enjoy! CategoryEnglish, CategoryBlog, CategoryTeX . . .
1K - last updated 2018-05-07 05:00 UTC by Marcin Borkowski
2018-05-20 Collaborating with non-Git-users - workflow and basic setup
//This is the first post in a [[2018-05-28 Collaborating with non-Git-users - Emacs support|three-part]] . . . to contain the line {{{ *.tex export-subst }}} Of course, I now have to remember . . .
6K - last updated 2018-06-04 19:37 UTC by Marcin Borkowski
2018-05-28 Collaborating with non-Git-users - Emacs support
In the [[2018-05-20 Collaborating with non-Git-users - workflow and basic setup|previous part]], I showed . . . data stripped down). (If you don’t use mu4e contexts, you can safely delete all parts relating to . . . I just didn’t want this command to ask me for context every time.) {{{ (defvar auto-git-archive-repo-dir . . . auto-git-archive-repo-dir) (mu4e-compose-context-policy nil) (mu4e-context nil)) (shell-command . . . archive -o current-version.zip master") (mu4e-context-switch nil "context") (gnus-dired-attach (list . . .
3K - last updated 2018-06-04 19:35 UTC by Marcin Borkowski
2018-07-02 Smart yanking
//Notice//: this is a long, technical post about a useful piece of Emacs Lisp. What it does it allowing . . . to yank text with a space at either end both before //and// . . . this!). ---- I use Emacs fairly often to write text in a natural language. While I consider Emacs . . . to spaces. For instance, consider the following text: {{{ The quick| brown fox jumps over the lazy . . . it for now.) On the other hand, Org-mode, LaTeX modes etc. are fine. This means that we probably . . .
12K - last updated 2018-07-04 17:56 UTC by Marcin Borkowski
2018-07-09 A mistake with modes and advice
In my [[2018-07-02 Smart yanking|last post]] I wrote about a way to do something only in modes derived . . . from {{{text-mode}}}. Alas, as user Omar pointed out [[Comments . . . embarrassing mistake of saying {{{ (add-hook 'text-mode-hook (lambda () (advice-add 'insert-for-yank . . . Of course, this won't advise my function in {{{text-mode}}} only, but will install the advice //globally// . . . of {{{ (defun set-point-before-yanking-if-in-text-mode (string) "Invoke `set-point-before-yanking' . . .
2K - last updated 2018-07-09 18:10 UTC by Marcin Borkowski
2018-07-23 Handlebars inline and block helpers
In a project I’m involved in, we use a templating library called [[https://handlebarsjs.com/|Handlebars.js]]. . . . {{name}}!'); let context = {greet: 'Hello', name: 'world'}; console.log(template(context)); . . . like compiled templates]] – they accept a context and return a string. The point is in what they . . .
6K - last updated 2018-07-23 03:44 UTC by Marcin Borkowski
2018-08-27 Whitespace in Emacs regexen
Some time ago I wanted to search for a sequence of two words in a buffer. Normally I’d search for {{{lorem<space>ipsum}}}, . . . modes, and while you can use syntax classes in text-mode buffers and their ilk, it may not be the . . . best idea. For instance, take this (text-mode) buffer: {{{ lorem ipsum dolor sit amet lorem . . . (which makes sense, but is annoying in this context), so you probably want to search for {{{lorem[[:blank:]^J]ipsum}}} . . .
3K - last updated 2018-08-27 19:34 UTC by Marcin Borkowski
2018-09-10 Persisting Emacs variables
Some time ago I coded a certain Elisp tool (for internal use at [[2018-05-07_Ten_years_of_work_in_Wiadomości . . . (with-temp-file user-init-file (let ((sentinel-text (format "\n;; Persistent variable `%s'. Do not . . . user-init-file) (if (search-forward sentinel-text nil t) (if (not (looking-at-p (format "^(setq . . . 1))) (goto-char (point-max)) (insert sentinel-text))) (insert (format "(setq %s %S)\n" variable-name . . .
2K - last updated 2018-09-10 07:56 UTC by Marcin Borkowski
2018-09-17 Emacs directory variables
Many people know and use Emacs [[https://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html|file . . . variables, in fact does not. While in the context of file variables it accepts a Lisp expression, . . .
4K - last updated 2018-09-23 04:50 UTC by Marcin Borkowski
2018-10-27 Launching terminal in current directory
I am a bit ashamed that I do not always use Eshell – I sometimes rely on a “proper” bash in a terminal. . . . seems to output the right directory in this context, maybe it is just because when Emacs runs a shell . . .
2K - last updated 2018-10-27 14:46 UTC by Marcin Borkowski
2018-12-03 looking-back-p
Warning: this was meant to be a short tip about a simple thing I needed ({{{looking-back-p}}}), but during . . . {{{looking-at}}}, which says whether the text from the point on matches a given regex. Unfortunately, . . . that [[2013-09-18 Selective replacement in LaTeX documents (en)|it is allowed for Emacs commands . . .
7K - last updated 2018-12-03 08:46 UTC by Marcin Borkowski
2018-12-31 An info about the size of message attachments
I have been using [[https://www.djcbsoftware.nl/code/mu/mu4e.html|mu4e]] for quite a long time as my . . . that the code responsible for parsing the above text is well hidden in the {{{mml.el}}} file. While . . . (string-match "/[^/]+$" result))) (add-face-text-property (if slash-pos (1+ slash-pos) 0) (length . . . that if I want to manually add some faces to a text in a buffer with font-lock mode turned on, I should . . . and not the {{{face}}} one. Changing {{{add-face-text-property}}} to {{{add-text-properties}}} turned . . .
9K - last updated 2018-12-31 08:26 UTC by Marcin Borkowski
2019-01-20 Filling and version control
It has been said a lot of times that when writing some (natural language) text with version control in . . . rather longish sentences myself, or work on texts by other people that have long sentences. (This . . . CategoryBlog, CategoryEmacs, CategoryTeX . . .
3K - last updated 2019-01-20 19:47 UTC by Marcin Borkowski
2019-01-28 A simple tip with killing and yanking code
I often kill (cut) some code and then yank (paste) it somewhere else. Often the level of indentation . . . and point at the opposite sides of the yanked text, you can press {{{C-M-\}}} immediately after the . . .
1K - last updated 2019-01-28 18:30 UTC by Marcin Borkowski
2019-02-04 A simple template mechanism in Elisp
A long time ago [[https://lists.gnu.org/archive/html/help-gnu-emacs/2014-11/msg00210.html|I asked on . . . of \"{{{beep}}}\" using the alist VALUES. The text to use as the replacement is the cdr of the cons . . . of \"{{{beep}}}\" using the alist VALUES. The text to use as the replacement is the cdr of the cons . . . of \"{{{beep}}}\" using the alist VALUES. The text to use as the replacement is the cdr of the cons . . . {{{rep}}} argument (specifying the replacement text) can be a function, which seemed to suit my needs. . . .
6K - last updated 2019-02-04 04:46 UTC by Marcin Borkowski
2019-02-24 Transferring strings to a phone via QR codes
Sometimes I need to transfer some text (a link, a short note or something else) from my computer to my . . . codes]] came to my mind. I could encode my short text into such a code, display it on the monitor and . . .
3K - last updated 2019-02-24 07:17 UTC by Marcin Borkowski
2019-04-15 How to make a menu in Emacs
As we all know, Emacs is so much more than just a text editor. There are quite a few serious applications . . . buffer name with a space, depending on the context. My rule of thumb is to start it with a space . . . in the meantime. Then we insert a bunch of text (basically, our menu, or whatever makes sense . . .
7K - last updated 2019-04-15 20:39 UTC by Marcin Borkowski
2019-05-05 A few Magit tips
[[2019-04-01 A trick with Git merging|A month ago]] I wrote about merging in Git without actually comitting . . . for these poor people accustomed to toy text-editors instead of the real thing. ;-) CategoryEnglish, . . .
2K - last updated 2019-05-05 04:15 UTC by Marcin Borkowski
2019-05-20 Converting BibTeX files to AMSrefs
It’s been a long time since I’ve written anything TeX-related here. But I’m still working with LaTeX . . . ago – and a solution. I received a file with BibTeX-encoded bibliography. Obviously, I wanted to convert . . . the following structure. The file {{{example.tex}}} looks like this: {{{ \documentclass{article} . . . Year = {2009}, } }}} After the usual compile-bibtex-compile-view cycle, we get the {{{example.bbl}}} . . . }}} In order to properly compile {{{example.tex}}} we only need to add {{{\usepackage{amsrefs}}}} . . .
2K - last updated 2019-05-20 16:37 UTC by Marcin Borkowski
2019-06-09 Defining custom TikZ fill patterns
Some time ago I had a need to define my own filling pattern in TikZ. It turned out to be quite simple, . . . here). CategoryEnglish, CategoryBlog, CategoryTeX . . .
5K - last updated 2019-06-09 16:09 UTC by Marcin Borkowski
2019-07-01 Syntax-aware navigation, keyboard macros, sleeping Emacs and interactive functions
Warning: today’s post is a bit of a “stream of consciousness” in that it describes several unrelated . . . use a keyboard macro which would find a certain TeX one-parameter macro (say, {{{\todo}}}) and comment . . . CategoryBlog, CategoryEmacs, CategoryTeX . . .
5K - last updated 2019-07-01 18:31 UTC by Marcin Borkowski
2019-07-15 Batch Org agenda
Org-mode agenda is a notoriously complex system. It is really great from a user’s perspective, but a . . . that takes a string argument and generates a text-only agenda to the standard output. (Notice that . . .
4K - last updated 2019-07-15 18:31 UTC by Marcin Borkowski
2019-07-29 Git commands as separate executable files
Today we are going to talk about git commands and how they are implemented. Don’t worry, I won’t get . . . -u ELF 64-bit LSB pie executable Perl script text executable POSIX shell script Python script }}} . . .
6K - last updated 2019-07-29 18:29 UTC by Marcin Borkowski
2019-08-31 A simple tip with overlays and diffs
A few days ago I had an interesting problem. I had to resolve a particlarly nasty Git merge. It involved . . . two, sometimes four characters) of changed text and I was quite afraid that I would miss some . . . properties]]). (By the way, . . . the way, there also exist similar functions for text properties //and// a version which looks for both. . . .
3K - last updated 2019-08-31 11:17 UTC by Marcin Borkowski
2019-10-28 PostgreSQL, jsonb each and cross joins
A few days ago I stumbled on a PostgreSQL query I didn't really understand. I asked a [[https://stackoverflow.com/q/58280136/1181665|question . . . {{{ # create temporary table test_table( name text, data jsonb ); # insert into test_table values . . . them.) Note also that {{{key}}} is of type {{{text}}}, but {{{value}}} is of type {{{jsonb}}} – there . . . returning both columns of type text. Finally . . .
3K - last updated 2019-10-28 17:00 UTC by Marcin Borkowski
2019-11-11 Diffing buffer fragments
While working on a certain project, I needed to check the differences between two text fragments. We . . . do this in Vim (probably yes) or in Sublime Text or VSCode or what-have-you, but I suspect that . . .
3K - last updated 2019-11-11 18:49 UTC by Marcin Borkowski
2019-11-25 Using inotifywait to generate files on the fly
Sometimes I want to edit some file which is then transformed to some kind of “target” format, suitable . . . for watching. It might be a LaTeX file, a Markdown file converted to HTML, or a HTML . . . write something like {{{ while [ true ]; do pdflatex file.tex; sleep 8; done }}} but this is of course . . . terribly inefficient – it just runs LaTeX in fixed intervals instead of when the file is . . . saved, which means that usually the LaTeX run will be unnecessary, and when I save the file, . . .
2K - last updated 2019-11-25 20:41 UTC by Marcin Borkowski
2020-02-15 PostgreSQL and null values in jsonb
Some time ago I was writing some PostreSQL queries involving columns of type jsonb. For some reason I . . . in PostgreSQL – as JSON (e.g. {{{->}}}) or as text (e.g. {{{->>}}}). Combining the above we . . . }}} gives a proper SQL {{{null}}}. Using the text extraction operators, however, we get an SQL null . . . an SQL {{{null}}}, which (after casting to {{{text}}}) remains {{{null}}}. The former, however, came . . . as casting an explicit JSON {{{null}}} to text gives that string. The programmers behind PostgreSQL . . .
5K - last updated 2020-02-17 14:16 UTC by Marcin Borkowski
2020-02-24 Some psql tips
I have to admit that I’m more and more enamored by PostgreSQL. Since I often use its default client {{{psql}}}, . . . of writing out each row in a single line of text, every column’s value is written out in its own . . . For instance, {{{\e}}} opens your favorite text editor with the current query buffer or the previous . . .
4K - last updated 2020-02-24 19:44 UTC by Marcin Borkowski
2020-03-09 Using Org-mode as a PostgreSQL client
I often have to write more or less complex SQL queries. In case of the easy ones, there is no problem . . . editor on steroids: you can write structured text in a plain text markup, and interact with it in . . . 5432 create table testtable ( id int, content text ); insert into testtable(id, content) values (1, . . .
5K - last updated 2020-03-09 08:12 UTC by Marcin Borkowski
2020-04-18 The main line of history of some branch
Some time ago, it occurred to me that it would be cool to be able to see the history of some branch of . . . :/ syntax]], so I can . . .
2K - last updated 2020-04-18 12:06 UTC by Marcin Borkowski
2020-04-27 Printing from pdf-tools
[[2020-04-06 Printing from the command line|Some time ago]] I studied the command-line interface to CUPS. . . . Compiling a single Beamer frame in AUCTeX|written]] [[2016-09-12 Running Emacs commands not . . .
3K - last updated 2020-04-27 09:39 UTC by Marcin Borkowski
2020-05-11 Diffing and font-lock
I often work with diffs in Emacs. I usually do that within Magit, which highlights diffs in the usual . . . general this seems resonable, in the case of LaTeX files in AUCTeX (where the font lock colors are . . .
2K - last updated 2020-05-11 20:37 UTC by mbork
2020-06-08 Emacs as a (very simple) CAT
From time to time, I need to translate something (usually from English to Polish). Being an Emacs user, . . . One of them is that I need to have two texts on the screen, and track my positions in both. . . . is a global minor mode. If I have the source text in one buffer and my translation in another one, . . . has the drawback that I cannot have //two// texts under translation in an Emacs session at the . . .
3K - last updated 2020-06-08 20:11 UTC by mbork
2020-09-14 amsreftex – a long-expected package
I have been a [[2009-04-14 List of publications of a person (en)|long]] [[2018-01-07 A small editing . . . with AMSrefs|time]] [[2019-05-20 Converting BibTeX files to AMSrefs|user]] of the [[http://www.ams.org/publications/authors/tex/amsrefs|amsrefs . . . LaTeX package]]. I am also [[2013-06-02 Making TAB jump . . . [[2013-09-18 Selective replacement in LaTeX documents (en)|avid]] [[2013-12-14 Searching for . . . of the [[https://www.gnu.org/software/auctex/|AUCTeX]] Emacs package. Unfortunately, the two . . .
3K - last updated 2020-09-14 07:46 UTC by mbork
2020-09-20 A simple trick with Textern and require-final-newline
I have been using the Textern add-on for Firefox for quite some time now. What it does is it lets you . . . some key combination while being focused on a {{{textarea}}} element and start editing it in an editor . . . sets {{{require-final-newline}}} to {{{t}}} in text mode and the modes derived from it, like Markdown . . . another story). This is good when editing actual text files (which I //want// to end with a newline), . . . editing a one-line chat message using Emacs via Textern. Of course, this is Emacs, so it turns out . . .
2K - last updated 2020-09-20 10:00 UTC by mbork
2020-10-18 A nice exercise in metric spaces
It’s been a very long time since I posted anything math-y here (more than five years!). It certainly . . . x,y,z in the space in question. (Sorry for un-LaTeX-y formatting here, I just noticed that LaTeX fragment . . .
3K - last updated 2020-10-18 16:31 UTC by mbork
2020-11-23 Emacs and the X selection
One thing I have been reading about lately is the interaction between Emacs and the outside world via . . . which works by first dragging a portion of text (which sets and activates the region in Emacs) . . . potentially useful to e.g. repeatedly paste some text even if the clipboard or the primary selection . . . sometimes be a nice alternative to using e.g. text registers (which are //my// go-to feature if I . . . need to paste more than one text repeatedly). Interestingly, there //is// a way . . .
3K - last updated 2020-11-23 10:52 UTC by mbork
2020-12-21 Pretty printing json and jsonb columns in PostgreSQL
And for today I have yet another short PostgreSQL tip. I use a database which has quite a few tables . . . {{{ create function pretty(arg json) returns text as 'select jsonb_pretty(arg::jsonb)' language . . . input; create function pretty(arg jsonb) returns text as 'select jsonb_pretty(arg)' language sql immutable . . .
2K - last updated 2020-12-21 19:12 UTC by mbork
2021-02-13 Copying to clipboard with single spaces
I sometimes need to transfer some text from Emacs to another program, like a web browser or terminal. . . . be nice if I could somehow //transform// that text – my use-case is changing double spaces (which . . . copying to system clipboard – {{{gui-select-text}}} by default). Or even better, I can //advise// . . . {{{gui-select-text}}} so that it begins with replacing multiple spaces . . . process will not, of course, since then the text travels through the system clipboard.) Now one . . .
6K - last updated 2021-02-13 15:44 UTC by mbork
2021-02-20 Using keyboard macros to emulate query replace
As you might have noticed, I hardly ever write about TeX anymore. This is because I use it much less . . . paper which used italics (with the {{{\emph}}} LaTeX macro) really a lot (more than 100 times). Very . . . that there were no braces within the italic text. As we know, regular expressions are not the right . . . Finally, I could define a one-parameter TeX macro {{{\quote}}} putting its parameter in quotes . . . CategoryBlog, CategoryEmacs, CategoryTeX, CategoryLaTeX . . .
5K - last updated 2021-02-20 09:00 UTC by mbork
2021-05-01 Emacs Lisp book revived
Five and a half years ago [[2015-09-05 EmacsConf2015 - afterthoughts, and a book project|I mentioned . . . fraction of people. For instance, there is no AUCTeX-related code in the book, nor any extensions to . . . Org-mode (since not every Emacser is also a LaTeX or Org-mode user). One thing I am not very happy . . .
6K - last updated 2021-05-01 08:40 UTC by mbork
2021-05-17 Updating an Emacs buffer in real-time
I am in the process of writing some Elisp code which needs to provide feedback to the user about a certain . . . the buffer is modified (including the changes in text properties). The character-change modification . . . count is only modified when the //text// contained in the buffer is changed. This means . . .
4K - last updated 2021-05-17 19:33 UTC by mbork
2021-05-30 Extending subed-mode
[[2020-10-12 Editing subtitles in Emacs with subed|Some time ago]] I mentioned the [[https://github.com/rndusr/subed|subed-mode]], . . . It is a well-known fact that translating a text from English to Polish almost always makes it . . . reading somewhere, many years ago, that a Polish text is on average about 20% longer than its English . . . language to //any other// tends to make the text longer, which also sounds reasonable – and actually . . . //things// to my brain. Sometimes I look at a text and perceive a slight discomfort, meaning there’s . . .
6K - last updated 2021-05-30 16:55 UTC by mbork
2021-06-05 Emacs Lisp book update – what the book is going to look like
About a month ago I decided to [[2021-05-01 Emacs Lisp book revived|write about the book on Emacs Lisp . . . now, having authored or coauthered three other textbooks.) So the first part of the plan is that I . . .
7K - last updated 2021-06-07 03:52 UTC by mbork
2021-06-14 New behavior of yank-pop
I have another short Emacs tip for today. Quite recently (well, in November 2020, which – given the scale . . . It shows the minibuffer and lets you type the text to be yanked there. This sounds pretty useless . . . editing is far from a solved problem]] . . .
3K - last updated 2021-06-14 19:35 UTC by mbork
2021-07-03 Emacs Lisp book - contents
As you [[2021-05-01 Emacs Lisp book revived|probably know]] [[2021-06-05 Emacs Lisp book update – what . . . look like|by now]], I am writing an intermediate textbook on Emacs Lisp, entitled [[https://leanpub.com/hacking-your-way-emacs|Hacking . . . defining a minor mode, and more advanced, like text properties, overlays or {{{catch}}}/{{{throw}}}. . . . Emacs and Elisp are //huge//, a comprehensive textbook would probably require years of work and thousands . . . – how cool is that, by the way? – and a proper //textbook// would probably need two or three times as . . .
5K - last updated 2021-07-03 17:10 UTC by mbork
2021-08-02 Reordering sentences in Emacs
I’m probably in a minority, but I am a heavy user of Emacs’ {{{transpose-*}}} commands, most notably . . . because I have spent a lot of time editing texts in Emacs – not //writing//, but //editing//, . . .
5K - last updated 2021-08-02 04:15 UTC by mbork
2021-08-23 grep and context lines
Sometimes (well, actually pretty often!) I need to search text files with [[https://www.gnu.org/software/grep/|grep]]. . . .
1K - last updated 2021-08-23 04:22 UTC by mbork
2021-09-06 My experience with book writing
This is a rather atypical post in that it is just a bunch of thoughts about how to write a book, how . . . of hyperconvex spaces – a beginner's guide|a textbook on hyperconvex metric spaces]], and the third . . . would actually buy it. [[2015-06-13 The LaTeX book is out|The second one I wrote]] (with a friend) . . . glaring gap in the market (no free and modern textbook on LaTeX in Polish except the translation . . . in it is), it was basically the third large text I wrote on this subject, so I had quite a clear . . .
16K - last updated 2021-09-06 18:31 UTC by mbork
2021-09-20 Simple tmux scripting
I have recently started to use {{{tmux}}} instead of separate tabs in my terminal. I had a few reasons . . . to make {{{tmux}}} run a command when some text is displayed in a chosen window. For now, I will . . .
3K - last updated 2021-09-20 11:28 UTC by mbork
2021-09-27 Ellipses in math - ldots versus cdots
It's been a while since a TeX-related post here, but I still use TeX and friends once in a while, and . . . something apparently not everyone knows about. LaTeX has a {{{\dots}}} macro, setting the ellipsis (three . . . “next character” is not a math operator, so LaTeX needs a small hint that centered dots are needed . . . here. And that’s it. There is [[https://tex.stackexchange.com/a/576193|more to know]], as usual, . . . cases. CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX . . .
2K - last updated 2021-09-27 20:18 UTC by mbork
2021-10-04 Emacs Lisp book - status update and plans
This post is a status update about the [[https://leanpub.com/hacking-your-way-emacs/|book I started way . . . page. (If I export the Org file of the book to LaTeX, I get about 10% more in the default style.) As . . .
4K - last updated 2021-11-05 06:08 UTC by mbork
2021-11-06 The Emacs Lisp book is finished
So, it’s done! I am very proud to say that after about 10 months of work I finished writing [[https://leanpub.com/hacking-your-way-emacs/|my . . . around in Emacs” and it is an intermediate-level textbook on Emacs Lisp, showing a lot of useful things . . . you definitely should not expect a “complete” textbook, covering every important feature of Emacs . . .
4K - last updated 2021-11-06 18:59 UTC by mbork
2021-12-11 My productivity system - design
Note: this is another of those //really// long posts. It’s probably only interesting for some productivity . . . day), it seems easier to me to remember the context. If I write a longer blog post (like this one), . . .
16K - last updated 2021-12-11 10:53 UTC by mbork
2022-01-24 Journaling with Org-mode
OK, so let’s admit it. I’ve been journaling with Org-mode for more than 6½ years now. Every day (well, . . . What is Emacs, really|a language for writing text editors in]]: //streams// and //output//. It turns . . . out that quite a few functions producing text (like {{{princ}}}) are capable of sending this . . . text to various places. It’s definitely not something . . .
4K - last updated 2022-01-24 16:26 UTC by mbork
2022-02-07 An inclined plane in tikz
Look, a TeX post again! It's been [[2021-09-27 Ellipses in math - ldots versus cdots|another while]] . . . since I last wrote anything TeX-y here. No wonder, I hardly ever use TeX anymore . . . using TikZ before (obviously), but [[https://tex.stackexchange.com/q/146558|two]] [[https://latexdraw.com/free-body-diagram-of-an-inclined-plane-in-tikz/|examples]] . . . of the body, the position of the bottom-left vertex of the body (as a fraction of the plane’s length), . . . Enjoy! CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX . . .
5K - last updated 2022-02-07 08:04 UTC by mbork
2022-02-21 Graph plotting in TikZ – a caveat
Yet another TeX tip today – I found I wrote this over 6 years ago and never published. So, here it is. . . . the square”. Apparently, TikZ performs a simple, textual substitution, so when {{{\x}}} is {{{-1}}}, . . . \draw plot[domain=-1:1] (\x,\x*\x); }}} Caveat TeXor! CategoryEnglish, CategoryBlog, CategoryTeX, . . . CategoryLaTeX . . .
2K - last updated 2022-02-21 04:46 UTC by mbork
2022-03-07 Transient input method
A [[2014-09-13 TeX input method|long time ago]] I wrote about my usage of the TeX input method, which . . . me just typing ordinary stuff (especially in AUCTeX, which I still occasionally use). My usual workflow . . .
2K - last updated 2022-03-07 05:53 UTC by mbork
2022-05-23 Copying code snippets
Two weeks ago [[2021-05-02 Org-mode to Markdown via the clipboard|I wrote]] about copying stuff from . . . to spaces would also be very useful – pasting text with tabs to various places like chat, Jira tasks . . . }}} Now it seems I have enough ways to copy text to the kill ring (or the system clipboard) that . . .
4K - last updated 2022-05-23 05:39 UTC by mbork
2022-06-04 Diffing structural changes revisited
Two and a half years ago I blogged about [[2019-10-07 A tip with diffing (and committing) program structure . . . parses your files and compares the ASTs, not the text. This means that it is able to disregard meaningless . . .
1K - last updated 2022-06-04 07:04 UTC by mbork
2022-06-13 Highlighting and de-highlighting things
From time to time I want to perform a kind-of “human search” on a file. For example, there is some keyword . . . are a great way to temporarily make some text stand out – or fade out, so to speak. Definitely . . .
4K - last updated 2022-06-13 19:14 UTC by mbork
2022-07-18 Making some things more legible
Continuing the topic of [[2022-07-02 Paying my bills with Emacs|one of the last posts]], let me talk . . . – displays that very string in place of the text covered by the overlay. One gotcha I encountered . . .
3K - last updated 2022-07-18 18:32 UTC by mbork
2022-08-01 Making secrets with Emacs
Let’s play with encryption! Well, not //real// encryption – but //fun// encryption. And few things are . . . also {{{morse-region}}}, which can morse-encode text. (It also has the reverse, {{{unmorse-region}}}; . . . non-injective function (i.e., two different plaintexts may result in the same “ciphertext”) – but it . . .
3K - last updated 2022-08-01 06:35 UTC by mbork
2022-09-17 Safe killing with Emacs
Some time ago Samuel Wales had a [[https://lists.gnu.org/archive/html/help-gnu-emacs/2022-09/msg00180.html|very . . . mailing list. He sometimes kills some portion of text to yank it elsewhere, but gets distracted and . . . forgets about the yanking. This way, the text is lost. He basically wants to make the "kill-yank" . . . {{{C-y}}} with an {{{M-y}}} and the yanked text gets lost again? what if you {{{undo}}} yanking? . . . does the heavy lifting) and then remember the text copied, so that our advised {{{yank}}} will know . . .
4K - last updated 2022-09-17 14:21 UTC by mbork
2022-10-03 Converting words and sentences to identifiers
Some time ago I had a need to “convert” a phrase, or even a whole sentence, into an identifier. By “converting . . . not a marker) does not “shift” together with the text being shortened. (Of course, a similar problem . . .
4K - last updated 2022-10-03 21:07 UTC by mbork
2022-11-14 Doubling backslashes
Today’s post is not meant to be very //useful// to most people, but it serves as a demonstration of a . . . a very atypical need. I needed to move some LaTeX code to a JSON file. This meant that all the backslashes . . . had to be doubled, of course – LaTeX code is full of them, and they need to be escaped . . . [[https://leanpub.com/hacking-your-way-emacs|a textbook on Emacs Lisp]]. Check it out if you want . . .
2K - last updated 2022-11-14 20:43 UTC by mbork
2022-11-26 Extracting Youtube subtitles in Emacs
A few days ago I [[https://www.reddit.com/r/emacs/comments/ywexhw/eww_is_awesome_what_do_you_use_it_for/|read . . . much dislike watching videos with lectures – text is much, much better way to communicate. (In fact, . . .
2K - last updated 2022-11-28 17:05 UTC by mbork
2022-12-19 A few new things in Emacs 29
Everybody with an Emacs blogs raves about Emacs 29 these days. Things like Eglot, tree-sitter, SQL support . . . basic things you can improve in a 40-years-old text editor. It’s kind of a lesson for people wanting . . . to write their own text editor. Either you just throw decades of collective . . .
4K - last updated 2022-12-19 07:22 UTC by mbork
2023-01-02 Computing Org mode TODO stats
When I started using Org mode, I followed the very common (and //very// sound) advice and did not try . . . instead of {{{org-element-at-point-no-context}}}, and I definitely should have avoided {{{plist-get}}} . . . (plist-get (cadr (org-element-at-point-no-context)) :todo-keyword))) (when keyword (cl-incf (alist-get . . .
4K - last updated 2023-01-09 06:07 UTC by mbork
2023-01-14 My plans for 2023
It is the first time I write a post about my plans for the upcoming year. This is because I keep changing . . . start learning something new in order to write a textbook about it! Much like the book on Elisp, it . . . convert my newly found knowledge into a regular textbook. And I'm really excited by this. I consider . . .
6K - last updated 2023-01-14 07:03 UTC by mbork
2023-02-11 Linear scaling of subtitles timestamps
Note: this post is a bit atypical – a tiny bit less technical than usual, a tiny bit more rantish than . . . or series episode and then substitute Polish text for the English one. (Is downloading subtitles . . .
5K - last updated 2023-02-11 08:37 UTC by mbork
2023-02-18 My approach to TODOs
Some time ago I described my [[2021-12-11 My productivity system - design|productivity]] [[2022-05-09 . . . want) to have the highlighting of the matched texts (it wouldn’t make sense in my use case anyway). . . .
8K - last updated 2023-02-18 08:52 UTC by mbork
2023-04-01 Showing an image between lines in Emacs
I am now coding a bigger thing in Elisp (and I will definitely blog about it when it’s done), but for . . . space, but it seems not to matter much) with a //text property// {{{display}}} set to an [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Image-Descriptors.html|image . . . properties]] and that they . . . that you can use a string with the {{{display}}} text property as the value of the {{{after-string}}} . . .
4K - last updated 2023-04-01 15:54 UTC by mbork
2023-04-29 My plans for 2023 - April update
This is a continuation of my posts from [[2023-01-14 My plans for 2023|January]] and [[2023-02-25 My . . . and then decide which ones to include as my textbook’s examples. # More stuff to come. A friend . . .
4K - last updated 2023-04-29 19:09 UTC by mbork
2023-05-29 A PostgreSQL query to set the serial counter
Some time ago I encountered an unpleasant bug I made in a certain PostgreSQL query. Assume that you have . . . table some_table( id serial primary key, content text ); }}} Assume also that in the course of work, . . .
2K - last updated 2023-05-29 18:39 UTC by mbork
2023-06-12 Counting time, backwards
Some time ago I thought that I would like to have a feature Org mode doesn't seem to have. There are . . . (much like Emacs is a platform to build text-centric workflows”). So, let’s build ourselves . . . yes, it will collect that headline (that is, its text and the computed number of days). {{{ (defun org-ago--find-last-time-entries . . .
4K - last updated 2023-06-12 18:08 UTC by mbork
2023-07-08 Finding a common prefix of a set of strings
Some time ago I needed a very specific thing. Given two strings, I wanted to find their longest common . . . phrase "initial substring", finding {{{fill-context-prefix}}} and looking at its source. Interestingly, . . .
3K - last updated 2023-07-08 13:20 UTC by mbork
2023-07-15 Drawing ASCII art charts in Emacs buffers
[[2023-05-13 Dieting with Org mode|Two months ago I wrote]] about how I track my weight in Emacs. I am . . . x from minx to maxx by labelx-skip do (artist-text-insert-overwrite (scatter-plot--scale-x x minx . . . y from miny to maxy by labely-skip do (artist-text-insert-overwrite (scatter-plot--scale-x minx minx . . . x y)) (artist-replace-char char) (put-text-property (1- (point)) (point) 'help-echo (format . . .
6K - last updated 2023-07-15 04:26 UTC by mbork
2023-08-05 Plotting ASCII art charts from Org mode tables
[[2023-07-15 Drawing ASCII art charts in Emacs buffers|Three weeks ago]] I wrote about simple ASCII art . . . all the distracting information about Org text properties.) Of course, I need the last //sixty// . . .
5K - last updated 2023-08-05 09:15 UTC by mbork
2023-08-21 My plans for 2023 - August update
Since about two months have passed since [[2023-06-26 My plans for 2023 - June update|the last blog post]] . . . – I have all my blog entries, HTML templates and text assets like CSS and JS files in a single Org mode . . .
5K - last updated 2023-08-21 17:47 UTC by mbork
2023-09-02 Irregular recurring TODOs in Org mode, part I
//Warning//: this is the first part of a series which is not even finished yet. And even though it’s . . . links, but they may also be just pieces of text stored on my disk. I’d prefer to be flexible and . . .
13K - last updated 2023-09-05 15:25 UTC by mbork
2023-09-18 Making Anki flashcards from subtitles
Those of you who follow my blog know that one of my hobbies is translating subtitles. The main reason . . . Subed mode doesn’t like it when the subtitle text has that form – adding a space after the colon . . .
4K - last updated 2023-09-18 18:41 UTC by mbork
2023-10-14 Avoiding repetitions
I write a lot of prose. That does not mean I'm //good// at it nor very //creative// -- I haven't written . . . but -- like with many other real-world text-editing tasks -- there are a few edge cases one . . .
5K - last updated 2023-10-14 05:03 UTC by mbork
2023-11-13 Coloring CamelCase
Some time ago one of the members of the Emacs mailing list [[https://mail.gnu.org/archive/html/help-gnu-emacs/2023-10/msg00003.html|asked]] . . . A significant advantage of overlays in the context of Glasses mode is that they are "separate" from . . . the text in the sense that killing text decorated with . . . loses them. This means that when you kill some text from a buffer with Glasses mode on and yank it . . .
4K - last updated 2023-11-13 06:24 UTC by mbork
2023-12-11 Replacing TeX control words behind the point
Two weeks ago, a friend from Polish TeX Users' Group mailing list [[https://www.man.torun.pl/archives/arc/gust-l/2023-11/msg00000.html|asked]] . . . from time to time, and I usually go with the TeX [[2014-09-13 TeX input method|input]] [[2022-03-07 . . . some utility (written by another Polish TeX user) which replaces a TeX sequence with a Unicode . . . So, here’s a proof of concept. {{{ (defcustom TeX-to-unicode-alist '(("in" . "∈") ("emptyset" . "∅")) . . . "Alist of LaTeX control words and their Unicode equivalents." :type . . .
9K - last updated 2023-12-11 17:05 UTC by mbork
2024-01-08 My plans for 2023 - final report
At the beginning of the last year [[2023-01-14 My plans for 2023|I wrote about my plans for 2023]]. As . . . still on a fence – I //might// try to write that textbook – but even if so, it will have to wait a bit. . . .
7K - last updated 2024-01-08 05:32 UTC by mbork
2024-01-22 From the kill ring to a register
I am probably one of the five or six people on this planet who use Emacs registers. I mostly use them . . . insertion]] (especially when . . . once or twice. Sometimes, though, I kill some text to yank it elsewhere and only then realize that . . . I decided to write a little command to copy the text from the kill ring to a specified register. And . . . (defun copy-kill-to-register (register n) "Copy text from the kill ring to REGISTER. With prefix argument . . .
6K - last updated 2024-01-22 04:18 UTC by mbork
2024-02-12 Finding Bible quotes
I often have the need to find some particular quote of the Bible – either I am reading some religious . . . text or I want to link to some passage on my blog. . . .
3K - last updated 2024-02-12 05:39 UTC by mbork
2024-02-26 A simple trick with URL parsing in plain text emails
Today I only have a very short tip I thought up a few days ago. If you sometimes send URL via emails . . .
2K - last updated 2024-02-26 17:48 UTC by mbork
2024-03-11 More psql tricks
As I mentioned many times, I am a PostgreSQL fan. I [[2020-02-24 Some psql tips|wrote]] [[2020-03-28 . . . For instance, you can generate a file with a LaTeX table, without the annoying vertical lines, and . . . few lines with this invocation: {{{ \g (format=latex border=0) |tee /tmp/table.tex | head -n2 }}} Now, . . .
6K - last updated 2024-03-12 12:43 UTC by mbork
2024-03-18 Follow mode
It is a fairly common opinion that a function should not be larger than your screen. The reality, though, . . . not that high. (My laptop gives me 66 lines of text with normal font settings.) You can have an external . . .
3K - last updated 2024-03-18 16:52 UTC by mbork
2024-04-15 Improving recenter-top-bottom and reposition-window
If one can be a fan of an Emacs command, then I am a huge fan of {{{recenter-top-bottom}}} ({{{C-l}}}) . . . I use them all the time to see the context of what I’m editing at the moment. However, they . . . commands is sometimes very difficult to achieve. Text editing is a surprisingly complicated subject . . . matching a "section beginning", and to move the text in the window so that more and more "sections" . . . down instead of up. This way more and more context //below// the point would become visible. It is . . .
13K - last updated 2024-04-15 17:23 UTC by mbork
A brief history of LaTeX
In the 1970s, the famous American mathematician and computer scientist Donald E. Knuth started writing . . . TeX, a computer program which could (semi)automatically . . . seminal work "The Art of Computer Programming". TeX became a Turing-complete (though rather low-level) . . . it (a bit like LISP). One of such languages is LaTeX, whose development started in mid-eighties by Leslie . . . Lamport. About a decade later, LaTeX2e (pronounced LaTeX-two-epsilon) was delivered, . . .
2K - last updated 2012-09-19 18:49 UTC by Marcin Borkowski
About me
My name is Marcin Borkowski. I am Polish and live in Poland. I'm interested in religion (I'm a Roman . . . Catholic), mathematics, [[TeX (en)|TeX]], music and some other things. If you . . .
1K - last updated 2013-05-10 08:50 UTC by Marcin Borkowski
Analiza matematyczna dla informatyków 1
== Zasady zaliczenia # Obecność na ćwiczeniach jest obowiązkowa; można mieć maksymalnie 3 nieusprawiedliwione . . . należy spełnić następujący warunek: $\max\{\text{pkty za podejścia do kolokwium}\}$ $+ \min\{1, . . . \text{pkty za kartkówkę}+\text{pkty za zadania domowe}\} . . . zgodnie z formułą: $\operatorname{średnia}\{\text{pkty za podejścia kolokwium}\}$ $+ \min\{1, \text{pkty . . . za kartkówki}+\text{pkty za zadania domowe}\}$. == Kontakt Można się . . .
3K - last updated 2012-01-17 11:06 UTC by Marcin Borkowski
BachoTeX-2015-picture
image/jpeg
332K - last updated 2015-05-03 00:31 UTC by Marcin Borkowski
CategoryTeX
<list > . . .
1K - last updated 2009-04-10 10:11 UTC by Marcin Borkowski
Cedilla zamiast ogonka
To zdumiewające, ale nadal spotykam pliki TeXowe, w których zamiast [[http://pl.wikipedia.org/wiki/Ogonek|ogonka]] . . . Zamiast poprawnego $\text{ą}$ otrzymujemy wówczas (wyglądające okropnie) . . . $\text{\c{a}}$. Używanie cedilli zamiast ogonka było . . . roku 1995, kiedy zaczynałem moją przygodę z TeXem, fonty już były -- więc już wtedy używanie cedilli . . . w układzie T1 znajdują się w każdej dystrybucji TeXa, więc nie musimy się obawiać, że Amerykanie, Japończycy . . .
2K - last updated 2008-11-10 13:34 UTC by Marcin Borkowski
Co to jest TeX
TeX (wym. //tech//) jest darmowym, profesjonalnym systemem komputerowego składu tekstów, napisanym przez . . . Jeśli chcesz dowiedzieć się więcej o TeXu, możesz przeczytać artykuł [[http://pl.wikipedia.org/wiki/TeX|TeX]] . . . strony [[http://www.GUST.org.pl|GUST]]. KategoriaTeX . . .
1K - last updated 2008-03-13 12:01 UTC by Marcin Borkowski
Comments on 2016-02-27 Make Yourself Known – introduction
Why not Scala? Much better than Java and works on JVM. (Though I am not sure about Android). -- Filip . . . arguments. Some of them are: # As stated in the text, I want to know something at least a bit before . . .
1K - last updated 2016-03-01 20:53 UTC by Marcin Borkowski
Comments on 2016-07-04 Compiling a single Beamer frame in AUCTeX
http://www.damtp.cam.ac.uk/user/eglen/emacs/beamer.txt See the above URL. I wrote some similar code a . . . I use pdf-tools now and say {{{ (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) . . . Marcin Borkowski 2016-07-11 07:16 UTC (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) . . .
1K - last updated 2016-07-11 07:16 UTC by Marcin Borkowski
Comments on 2016-10-10 Fast font changes in AUCTeX
You don't have to miss that functionality in Org Mode! You can get it from smart-parens (which is all . . . delimiter pairs and then you can select some text and then press '/' or '*' or etc. to wrap the . . .
1K - last updated 2016-10-10 23:43 UTC by Omar
Comments on 2018-02-12 append-next-kill
An alternative, especially after the fact, can sometimes be to use yank-pop, with the default keybinding . . . M-y. Kill some pieces of text. Then yank with C-y. Then yank again, and this . . .
1K - last updated 2018-03-03 07:15 UTC by Marcin Borkowski
Comments on 2018-03-26 Human-readable filesizes
I prefer to shun the IEC binary prefixes and just use K, M, G etc. Context tells you that 1K=1024 and . . .
1K - last updated 2018-03-28 09:22 UTC by Marcin Borkowski
Comments on 2018-07-02 Smart yanking
Doesn't adding the advice in the text-mode-hook mean that after the first time you open a text-mode buffer . . . in every single buffer whether or not it is in text-mode? -- [http://www.matem.unam.mx/omar Omar] . . .
1K - last updated 2018-07-04 17:39 UTC by Marcin Borkowski
Comments on 2020-11-01 The situation in Poland
Some context for international readers. This decision has been highly controversial in Poland and started . . . 2020-11-02 08:55 UTC ---- Some more context. 1. AFAIK, the decision about the timing was made . . .
4K - last updated 2021-02-06 18:36 UTC by mbork
Comments on 2021-04-17 Multiple Help buffers
M-x rename-uniquely is similar but automatically generates the unique buffer name. Bind it to a key to . . . UTC ---- What about using DOCSTRING? It's just a text so diff and other tools can be used, not mentioning . . .
1K - last updated 2021-04-26 05:33 UTC by mbork
Comments on 2023-01-02 Computing Org mode TODO stats
> (plist-get (cadr (org-element-at-point-no-context)) :todo-keyword)) But why? There is `org-element-at-point' . . . the docstring for {{{org-element-at-point-no-context}}} said it is faster (and apparently is enough . . .
1K - last updated 2023-01-03 19:36 UTC by mbork
Comments on 2023-01-30 The benefits of everything being a buffer
Check out the Plan9 operating system with it's plumber utility and acme editor. Russ Cox has a cool presentation . . . things in Emacs -- the compounding with all text manipulation features (query replace, keyboard . . .
1K - last updated 2023-02-08 05:17 UTC by mbork
Comments on 2024-02-26 A simple trick with URL parsing in plain text emails
If you're ok with hackish solutions - dot-segments are allowed in URIs, hence this will work as well . . .
1K - last updated 2024-02-28 04:08 UTC by mbork
ConTeXt
#REDIRECT [[TeX, LaTeX i s-ka]] . . .
1K - last updated 2009-03-06 10:57 UTC by Marcin Borkowski
Definiowanie operatorów typu sin, log itp.
LaTeX ma cały szereg komend składających operatory, które tradycyjnie pisze się antykwą (pismem prostym, . . . log i wiele innych. Zamiast zatem pisać <LaTeX-source wrong> $sin^2 x + cos^2 x = 1$ </LaTeX-source> . . . //x//... i tak dalej), powinno się pisać <LaTeX-source> $\sin^2 x + \cos^2 x = 1$ </LaTeX-source> . . . = 1$). Oczywiście, katalog odpowiednich komend LaTeXa nie jest pełny. Nie ma w nim np. operatora sgn. . . . zrobić, gdy chcemy użyć oznaczenia, którego w LaTeXu nie ma? Najczęstszy błąd to pisanie po prostu . . .
3K - last updated 2008-12-19 10:26 UTC by Marcin Borkowski
Dokumentacje LaTeXowe
Poniżej zbieram linki do różnych dokumentacji związanych z LaTeXem.\\ //Uwaga//: dokumenty //pdf//, do . . . powinny znajdować się w każdej dystrybucji TeXa, ale dokumentacje w internecie mogą dotyczyć nowszych . . . informację, gdyby któryś link nie działał! == LaTeX ogólnie * //[[http://www.ctan.org/tex-archive/info/lshort/polish/lshort2e.pdf|Nie . . . za krótkie wprowadzenie do systemu LaTeX2e]]// -- klasyka, znakomite źródło na początek. . . . * //[[http://www.ctan.org/tex-archive/info/l2tabu/english/l2tabuen.pdf|An essential . . .
6K - last updated 2013-10-17 16:22 UTC by Marcin Borkowski
English page
This site exists mostly in Polish. Sorry. If you want to complain about it or just tell me anything, . . . mathematics. * You might want to read about [[TeX (en)|TeX]] - there are some links to English docs . . . here, and also examples of LaTeX documents (commented mostly in Polish - with the . . . exception of [[sum-multi-sample.tex]], an example of using the {{{amsart}}} LaTeX document . . .
2K - last updated 2013-09-27 20:42 UTC by Marcin Borkowski
Ja, geek
-- Mam na imię Marcin. Od 20 lat jestem geekiem. -- Chcesz o tym porozmawiać, Marcinie? Ponieważ, jak . . . religion & theology, geek of TeX, geek of grammar and language, user of the vocative . . .
4K - last updated 2009-01-05 22:09 UTC by Marcin Borkowski
KategoriaConTeXt
<list > KategoriaKategoria . . .
1K - last updated 2008-04-27 08:33 UTC by Marcin Borkowski
KategoriaLaTeX
<list > KategoriaKategoria . . .
1K - last updated 2008-04-27 08:34 UTC by Marcin Borkowski
KategoriaLaTeXPorady
<list > KategoriaTeX, KategoriaLaTeX, KategoriaKategoria . . .
1K - last updated 2008-10-13 13:08 UTC by Marcin Borkowski
KategoriaLaTeXPręgierz
<list > KategoriaTeX, KategoriaLaTeX, KategoriaKategoria . . .
1K - last updated 2008-10-25 11:21 UTC by Marcin Borkowski
KategoriaPlainTeX
<list > KategoriaKategoria, KategoriaTeX . . .
1K - last updated 2008-08-26 07:45 UTC by Marcin Borkowski
KategoriaTeX
<list > KategoriaKategoria . . .
1K - last updated 2008-04-27 08:34 UTC by Marcin Borkowski
Komentarz - 2008-12-18 Jak to TeX zachwyca, skoro nie zachwyca
Ale TeX nie jest tu niczemu winny! Gdyby w ,,dawnych czasach'' kazać matematykom składać ich prace w . . . odpowiednich szablonów (a w przypadku TeXa makr). Trudno oczywiście wyrokować, że efekt uzyskany . . . żadnych nakładów: komputer każdy ma, TeX jest za darmo, nośniki danych kosztują grosze. . . .
4K - last updated 2008-12-19 20:11 UTC by Radomir Dopieralski
Komentarz - 2009-04-12 Content AND Presentation
Oj, korekta italikowa by się w //pod//blogu przydała... -- [http://sheep.art.pl Radomir Dopieralski] . . . więcej tak, jak powinno (czytaj: tak, jak w TeXu z korektą). Ale masz rację o tyle, że w przypadku . . .
1K - last updated 2009-04-14 10:42 UTC by Marcin Borkowski
Komentarz - 2010-02-09 Taka sobie nierówność
nie wiem jak się tworzy pierwiastki u Ciebie, więc oznacze jako sqrt(X). sqrt(5)+sqrt(8)< sqrt(6)+sqrt(7) . . . nie drobny problem techniczny z renderowaniem TeXa na stronce, już dawno by tu było). A więc w końcu: . . .
3K - last updated 2010-03-21 18:06 UTC by Marcin Borkowski
Komentarz - 2010-09-12 A strange LaTeX error when using brackets (en)
wouldn't a "\ "(backslash-space) have worked also? -- [http://thomasjellis.com tj] 2010-09-12 12:43 UTC . . . (and has a visible side effect). First of all, TeX discards trailing spaces, so "{{{\ }}}" at the . . . //mean//---"{{{\ }}}"---see line b158 of the LaTeX2e source). (You may say "{{{\ %}}}" if you don't . . . want TeX to discard that space.) Further, all whitespace . . . in vertical mode (and after a {{{\\}}}, TeX is indeed in vmode), but "{{{\ }}}" is //not// . . .
2K - last updated 2010-09-12 23:31 UTC by Marcin Borkowski
Komentarz - Polskie cudzysłowy
,,Świerze'' śledzie! -- [http://sheep.art.pl Radomir Dopieralski] 2008-12-21 16:33 UTC ---- No, ale to . . . takiego rozwiązania sprawy cudzysłowów... \textquotedblleft kliknąć\textquotedblright może się . . .
2K - last updated 2013-10-15 15:19 UTC by luxus
Komentarz - gad-pkty-stale.tex
{{{ % Ponieważ komenda \phi już istnieje w LaTeXu, % musiałem użyć \renewcommand. }}} Trzeba było zdefiniować . . . pliku komuś, kto ma je wyłączone w konfiguracji TeXa. Był taki okres, gdy tak było domyślnie - był . . . to skutek lobbyingu LaTeXowców, którzy mówili "po co tablice konwersji, jak . . . (albo na [[http://en.wikipedia.org/wiki/XeTeX|XeTeXa]] czy [[http://en.wikipedia.org/wiki/Omega_(TeX)|Omegę]]). . . . \fi jest fatalnym pomysłem - przecież TeXowa komenda \fi zamyka instrukcje warunkowe!!! Więc . . .
2K - last updated 2008-06-10 11:48 UTC by maciej
LaTeX - Hello world
The simplest (non-empty;)) LaTeX document: <LaTeX-source> \documentclass{article} \begin{document} . . . Hello world! \end{document} </LaTeX-source> A bit more complicated example: <LaTeX-source> . . . \author{Marcin Borkowski} \title{A simple \LaTeX{} document} \maketitle \section{The first section} . . . Probably 90\% of \LaTeX{} users learn it by \emph{copying examples}. We . . . it will happen at some point of learning \LaTeX---then one has to ``RTFM'', or ``Read The Friendly . . .
1K - last updated 2009-09-18 14:36 UTC by Marcin Borkowski
LaTeX - color
Probably the easiest way to ornate your LaTeX documents with color is to use either the {{{color}}} package, . . . former one can be found [[http://tug.ctan.org/tex-archive/macros/latex/required/graphics/grfguide.pdf|here]], . . . latter one [[ftp://ftp.cise.ufl.edu/pub/mirrors/tex-archive/macros/latex/contrib/xcolor/xcolor.pdf|here]]. . . . a small example. <LaTeX-source> \documentclass{article} \usepackage{xcolor} . . . This is a terrible thing to \textcolor{red}{read}! \end{document} </LaTeX-source> . . .
1K - last updated 2009-09-23 16:32 UTC by Marcin Borkowski
LaTeX - justifying paragraphs
<LaTeX-source> \documentclass{article} \begin{document} \title{Justifying paragraphs\\in \LaTeX} . . . set centered. \end{center} \end{document} </LaTeX-source> . . .
2K - last updated 2009-09-18 14:52 UTC by Marcin Borkowski
LaTeX - special characters
<LaTeX-source> \documentclass{article} \begin{document} This document shows how to enter some special . . . characters into a \LaTeX{} document. \begin{itemize} \item `single' and . . . \%; \item for more, consult The Comprehensive LaTeX Symbol List. \end{itemize} \end{document} </LaTeX-source> . . .
1K - last updated 2009-09-18 14:31 UTC by Marcin Borkowski
LaTeX advantages and disadvantages
The main advantages of LaTeX are (especially for mathematicians): * semantic markup * high typographic . . .
1K - last updated 2012-09-19 20:04 UTC by Marcin Borkowski
LaTeX document classes
As we have seen from the first examples, each LaTeX document has a //class//, i.e., a "type" that determines . . . try to typeset this simple document: <LaTeX-source> \documentclass{article} \begin{document} . . . \maketitle The contents. \end{document} </LaTeX-source> and then substitute {{{book}}}, {{{amsart}}} . . .
1K - last updated 2009-09-20 20:32 UTC by Marcin Borkowski
LaTeX document structure
An example of an ``article'': <LaTeX-source> \documentclass{article} \begin{document} \author{A. . . . U. Thor} \title{Yet another \LaTeX{} document} \maketitle \tableofcontents \section{The . . . ``book'' document class.}. \end{document} </LaTeX-source> . . .
1K - last updated 2009-09-18 13:30 UTC by Marcin Borkowski
LaTeX font changing commands
<LaTeX-source> \documentclass{article} \begin{document} Font changing commands: \begin{itemize} . . . which means italics in upright context and \emph{upright} in slanted context}. \item . . . \textit{italics}; \item \textbf{bold}; \item \texttt{typewriter}; . . . \item \textsf{and} \textsc{some} \textsl{more}. \end{itemize} . . . These styles \textit{can be \textbf{nested}}. \end{document} </LaTeX-source> . . .
1K - last updated 2009-09-18 14:42 UTC by Marcin Borkowski
LaTeX installation
My recommendation is to visit http://www.tug.org/texlive/ and follow instruction for your operating system . . . there. Notice that the TeXlive distribution comes with a simple (but powerful . . . enough) (La)TeX editor called //TeXworks//. . . .
1K - last updated 2012-09-19 20:57 UTC by Marcin Borkowski
LaTeX links
== Books, tutorials, reference sheets * [[http://tobi.oetiker.ch/lshort/lshort.pdf|The Not So Short Introduction . . . to LaTeX 2ε]]---a very nice introductory book * [[http://tug.ctan.org/info/beginlatex/html/intro.html|Formatting . . . A beginner's introduction to typesetting with LaTeX]]---another introduction (also [[https://www.tug.org/TUGboat/tb23-2/tb74flynn.pdf|in . . . pdf format]]) * [[http://www.ctan.org/tex-archive/info/l2tabu/english/l2tabuen.pdf|An essential . . . guide to LaTeX2e usage. Obsolete commands and packages]]---a booklet . . .
2K - last updated 2017-11-15 10:18 UTC by Marcin Borkowski
LaTeX lists
<LaTeX-source> \documentclass{article} \begin{document} \title{A list example} \date{} \maketitle . . . \end{description} \end{document} </LaTeX-source> . . .
1K - last updated 2009-09-23 17:41 UTC by mb
LaTeX page styles
By default, we have an empty //header// (that is, the space at the top of the page) and a page number . . . can get rid of the page number by saying <LaTeX-source> \pagestyle{empty} </LaTeX-source> . . .
1K - last updated 2009-09-18 16:26 UTC by Marcin Borkowski
LaTeX workflow
LaTeX is a //batch// system, which means that the typical workflow looks like this: # prepare an input . . . (plain ASCII or UTF-8) file, containing the text to be typeset interspersed with so-called //LaTeX . . . commands//, # run LaTeX on it ("compile"), # view and/or print the resulting . . . Of course, there are quite a few specialized LaTeX editors (IDEs) which enable automation of steps . . . True Editor]] has a rich LaTeX mode (I hear that also that a certain [[http://www.vim.org/|famous, . . .
1K - last updated 2012-09-19 18:54 UTC by Marcin Borkowski
LaTeX workshop
//This page is still under construction, although it already contains some useful (I hope so at least!) . . . material.// * [[LaTeX workshop - Introduction|Introduction]] * [[LaTeX . . . typesetting|Basic markup and typesetting]] * [[LaTeX workshop - Advanced typesetting|Advanced typesetting]] . . . * [[LaTeX workshop - Mathematics|Mathematics]] * [[LaTeX . . . workshop - Graphics|Graphics]] * [[LaTeX workshop - Tables|Tables]] * [[LaTeX workshop - . . .
1K - last updated 2012-09-20 06:02 UTC by Marcin Borkowski
LaTeX workshop - About
In September 2009 I conducted a three-hour workshop on LaTeX on [[http://morgan.edu/|Morgan State University]] . . . of most basic things a beginning user of LaTeX (and a mathematician) might need. Probably the . . . most important part is called [[LaTeX links|Further reading]]---a small set of documents . . .
1K - last updated 2009-09-20 19:16 UTC by Marcin Borkowski
LaTeX workshop - Advanced typesetting
* [[Packages and options]] * [[The enumitem package]] * [[The geometry package]] * [[The fancyhdr package]] . . . tables * Floats * The memoir class * [[LaTeX - color|Color]] [[LaTeX workshop - Basic markup . . . (Basic markup and typesetting)]] {{{|}}} [[LaTeX workshop|Contents]] {{{|}}} [[LaTeX workshop - . . .
1K - last updated 2009-09-23 16:14 UTC by Marcin Borkowski
LaTeX workshop - Basic components of a formula
No mathematical paper can be written without use of at least one of the following symbols (expresions): . . . caret {{{^}}} and the underscore {{{_}}}. <LaTeX-source> Superscripts are very useful when you . . . indices: $x_{k}$, $a_{k_{p}}$ and $j_i$. </LaTeX-source> == Fractions The {{{\frac{}{} }}}command . . . and typesets them in normal fraction form: <LaTeX-source> To multiply $\frac{3}{4}$ by $\frac{1}{2}$ . . . \cdot 1}{4 \cdot 2}=\frac{3}{8}. \] </LaTeX-source> == Roots The square root is entered . . .
4K - last updated 2009-10-29 22:50 UTC by Piotr Kasprzak
LaTeX workshop - Basic markup and typesetting
* [[LaTeX document classes|Document classes]] * [[LaTeX document structure|Document structure]] (chapters, . . . sections etc.; table of contents) * [[LaTeX - special characters|Special characters]] * [[LaTeX . . . changing commands|Font changing commands]] * [[LaTeX - justifying paragraphs|Justifying paragraphs]] . . . * [[LaTeX lists|Lists]] * Footnotes * [[LaTeX page styles|Page . . . styles]] [[LaTeX workshop - Introduction|Previous (Introduction)]] . . .
1K - last updated 2009-09-20 20:21 UTC by Marcin Borkowski
LaTeX workshop - Bibliographies
//This page is not ready yet.// * The {{{amsrefs}}} package * The {{{biblatex}}} package [[LaTeX workshop . . . - Tables|Previous (Tables)]] {{{|}}} [[LaTeX workshop|Contents]] {{{|}}} [[LaTeX workshop - . . .
1K - last updated 2012-09-20 06:20 UTC by Marcin Borkowski
LaTeX workshop - Displayed and inline formulae
Mathematical formulae can be "inline" (i.e., be part of the paragraph) or "displayed" (i.e., be centered . . . or mathematical symbols as a part of the text, for example <LaTeX-source> The functions . . . is denoted as $g \circ f \colon X \to Z$. </LaTeX-source> In case of typesetting larger and more . . . and {{{\]}}}. Here are some examples: <LaTeX-source> Consider the function \begin{equation*} . . . \begin{equation} \int_{C}\frac{z^2}{z^2+2z+2}\textup{d}z = -4\pi i, \end{equation} where $C$ denotes . . .
2K - last updated 2009-10-25 22:49 UTC by Piotr Kasprzak
LaTeX workshop - Displays in more detail
Let us recall that the {{{equation}}} (or {{{equation*}}}) environment is used for typesetting a single . . . we shall pass to the following example: <LaTeX-source> \documentclass{article} \usepackage{amsmath} . . . \|f + g\|_2^2 & = \int |f + g|^2 \textup d\mu \leq \int (|f| + |g|)|f + g| \textup d\mu . . . \\ & = \int |f||f + g| \textup d\mu +\int |g||f + g| \textup d\mu \\ & . . . \leq \biggl[ \biggl( \int |f|^2 \textup d\mu \biggr)^{1/2} + \biggl(\int |g|^2 \textup . . .
4K - last updated 2009-10-29 22:25 UTC by Piotr Kasprzak
LaTeX workshop - Fine points
//page in preparation// . . .
1K - last updated 2009-09-21 19:44 UTC by Marcin Borkowski
LaTeX workshop - Graphics
//This page is not ready yet.// * The {{{figure}}} environment * The {{{graphicx}}} package * The {{{tikz}}} . . . The {{{subfig}}} and {{{ccaption}}} packages [[LaTeX workshop - Mathematics|Previous (Mathematics)]] . . . {{{|}}} [[LaTeX workshop|Contents]] {{{|}}} [[LaTeX workshop - . . .
1K - last updated 2012-09-20 06:16 UTC by Marcin Borkowski
LaTeX workshop - Introduction
* [[LaTeX workshop - About|About]] * [[What is LaTeX]] * [[A brief history of LaTeX]] * [[LaTeX workflow]] . . . * [[LaTeX advantages and disadvantages]] * [[TeX formats, . . . engines and distributions]] * [[LaTeX installation]] * [[LaTeX - Hello world|Hello world]] . . . * [[LaTeX links|Further reading]] [[LaTeX workshop|Contents]] . . . {{{|}}} [[LaTeX workshop - Basic markup and typesetting|Next (Basic . . .
1K - last updated 2012-09-19 18:31 UTC by Marcin Borkowski
LaTeX workshop - Math alphabets
A mathematician uses different kinds of math alphabets: === blackboard typeset with {{{\mathbb{} }}}(you . . . {{{amsfonts}}} or {{{amssymb}}} package) <LaTeX-source> \mathbb{ABCDEFGH} </LaTeX-source> . . . {{{amsfonts}}} or {{{amssymb}}} package) <LaTeX-source> \mathfrak{ABCDEFGHabcdefgh1234567} </LaTeX-source> . . . typeset with {{{\mathcal{} }}} <LaTeX-source> \mathcal{ABCDEFGH} </LaTeX-source> . . . (you need to add {{{mathrsfs}}} package) <LaTeX-source> \mathscr{ABCDEFGH} </LaTeX-source> . . .
1K - last updated 2017-11-22 09:22 UTC by Marcin Borkowski
LaTeX workshop - Mathematics
One of the main advantages of LaTeX is that it is very good at typesetting mathematical formulae. We . . . some basic examples. The [[ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf|Short Math Guide . . . for LaTeX]] is a good source; if you are more or less familiar . . . with standard LaTeX's math capabilities, [[http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/amsldoc.pdf|User’s . . . Package]] is also an excellent read. * [[LaTeX workshop - Displayed and inline formulae|Displayed . . .
2K - last updated 2012-09-20 06:14 UTC by Marcin Borkowski
LaTeX workshop - Matrices and cases
//page in preparation// . . .
1K - last updated 2009-09-21 19:44 UTC by Marcin Borkowski
LaTeX workshop - Presentations
//This page is not ready yet.// * The {{{beamer}}} class [[LaTeX workshop - Bibliographies|Previous (Bibliographies)]] . . . {{{|}}} [[LaTeX workshop|Contents]] {{{|}}} Next (Indices) . . .
1K - last updated 2012-09-20 06:20 UTC by Marcin Borkowski
LaTeX workshop - Tables
//This page is not ready yet.// * The {{{table}}} environment * The {{{tabular}}} environment * The {{{booktabs}}} . . . package * The {{{longtable}}} package [[LaTeX workshop - Graphics|Previous (Graphics)]] {{{|}}} . . . [[LaTeX workshop|Contents]] {{{|}}} [[LaTeX workshop - . . .
1K - last updated 2012-09-20 06:19 UTC by Marcin Borkowski
Lista kategorii (tematycznie)
=== Techniczna strona - spis kategorii === A technical page - category list * KategoriaWiara * KategoriaMatematyka . . . ** KategoriaMatematykaRekreacyjna * KategoriaTeX ** KategoriaPlainTeX ** KategoriaConTeXt ** KategoriaLaTeX . . . *** KategoriaLaTeXPorady *** KategoriaLaTeXPręgierz * KategoriaBlog . . . ** CategoryIB ** CategoryFaith ** CategoryTeX ** CategoryMaths ** CategoryBlog . . .
1K - last updated 2012-05-16 12:35 UTC by Marcin Borkowski
Matematyka - badania
Na tej stronie zamierzam gromadzić informacje, które mogą się przydać mniej lub bardziej początkującym . . . writing]], ** Na blogu [[http://latexforhumans.wordpress.com|LaTeX for humans]] znajduje . . . się krótki tekst [[http://latexforhumans.wordpress.com/2009/01/11/academic-writing|Academic . . . (w szczególności porady językowe oraz TeXowe -- ale nie tylko). * Jak mówić? ** [[http://people.reed.edu/~iswanson/goodtalk.html|What . . .
2K - last updated 2010-01-14 10:57 UTC by Marcin Borkowski
Menu Główne
* [[Strona domowa]] * [[Ostatnie zmiany]] * [[Wiara]] * [[Matematyka]] * [[TeX]] * [[Blog]] * [[Varia]] . . .
1K - last updated 2007-10-25 10:32 UTC by Marcin Borkowski
Napisy nad i pod strzałkami
Aby uzyskać następujący efekt: $A\xrightarrow[pod]{nad}B$ można zastosować konstrukcję: <LaTeX-source> . . . $A\xrightarrow[pod]{nad}B$ </LaTeX-source> == Uwagi * Oczywiście, //pod// i //nad// . . . tekstowo (co wygląda tak: $A\xrightarrow[\text{pod}]{\text{nad}}B$), należy napisać np. <LaTeX-source> . . . $A\xrightarrow[\text{pod}]{\text{nad}}B$ </LaTeX-source> * Analogiczna . . . {{{\xleftarrow}}}. * Obie komendy wymagają AMSLaTeXa, czyli bądź pakietu {{{amsmath}}}: {{{\usepackage{amsmath} . . .
1K - last updated 2008-03-13 20:45 UTC by Marcin Borkowski
O mnie
Nazywam się Marcin Borkowski. Interesuje mnie [[Wiara|religia]], [[Matematyka|matematyka]], [[TeX]], . . .
1K - last updated 2011-06-21 21:35 UTC by Marcin Borkowski
Packages and options
As we have seen, the document //class// is the "type" of the document. On the other hand, a //package// . . . is a piece of LaTeX code that enables certain features, e.g., typesetting . . . There exist hundreds or even thousands of LaTeX packages for various purposes; the [[http://tug.org/ctan.html|CTAN]] . . . Using a package is as simple as typing <LaTeX-source> \usepackage{package name} </LaTeX-source> . . . typesetting bibliographies), you could say <LaTeX-source> \usepackage{amsrefs} </LaTeX-source> . . .
2K - last updated 2009-09-20 02:22 UTC by Marcin Borkowski
Packages for font changing
The default LaTeX font is called //Computer Modern//. Although it's quite nice, and has an advantage . . . some other one. So here's an example with the //TeX Gyre// family of fonts, present in all modern TeX . . . distributions. Notice an interesting feature of TeX: if a percentage sign (without a leading backslash!) . . . effectively ignored. So in the example below, LaTeX does not "see" any of the {{{\usepackage}}} commands. . . . package which enables a different font from the TeX Gyre collection; probably now is a good time to . . .
2K - last updated 2009-09-21 01:50 UTC by Marcin Borkowski
Pakiet babel
Regularnie widuję tę straszną linię w plikach LaTeXa pisanych po polsku: <LaTeX-source wrong> \usepackage[polish]{babel} . . . </LaTeX-source> Proszę, nie róbcie tego. Pakiet {{{babel}}} . . . takie rozwiązanie jest -- zobacz [[Polonizacja LaTeXa|polonizacja LaTeXa]]. KategoriaTeX, KategoriaLaTeX, . . . KategoriaLaTeXPręgierz . . .
1K - last updated 2008-11-10 13:17 UTC by Marcin Borkowski
Piaskownica
== Miejsce na eksperymenty z markupem wiki. == Motto: //Ekskrementować to można w teatrze!// Smileye: . . . :) :D :( ;) :o :> :blush: :love: :rosary: LaTeX: $\sum_{n=1}^\infty \frac{x^n}{n^{\ln n}}$ A dolar . . .
1K - last updated 2017-05-15 05:45 UTC by Marcin Borkowski
Polonizacja LaTeXa
Jeśli chcemy pisać w LaTeXu po polsku, powinniśmy zadbać o kilka rzeczy. == Polskie litery Aby wpisywać . . . == Przykład Tak więc preambuła dokumentu LaTeXowego pisanego po polsku może zawierać np. coś takiego: . . . <LaTeX-source> \documentclass{mwart}% zamiast article, . . . [utf8] dla Linuksa \usepackage{polski} </LaTeX-source> == Uwaga Powyżej opisałem problem polonizacji . . . LaTeXa w wielkim skrócie -- ale na początek to powinno . . .
2K - last updated 2008-11-10 18:36 UTC by Marcin Borkowski
Polskie cudzysłowy
To wydaje się zdumiewające, ale najwyraźniej niektórzy nie widzą różnicy między stosowaniem znaku cudzysłowu, . . . dostępnego zarówno w kodzie ASCII, jak i w TeXu: $\text{"abc"}$, cudzysłowem "angielskim": $\text{``abc\rq\rq}$ . . . oraz //prawidłowym// cudzysłowem polskim: $\text{,,abc\rq\rq}$. (Tak, //wiem//, że na mojej własnej . . . też jest źle; cóż, wiem, jak to się robi w TeXu, natomiast w przypadku stron internetowych moja . . . Oczywiście, polskie cudzysłowy wpisujemy w TeXu tak: <LaTeX-source> ,,abc'' </LaTeX-source> . . .
1K - last updated 2008-12-21 16:03 UTC by Marcin Borkowski
Pomoc
== Menu == W standardowej konfiguracji menu znajduje się na górze ekranu. Kolejne pozycje menu to: * . . . się zmieniło, * [[Wiara]], [[Matematyka]], [[TeX]] -- czyli różne rzeczy w zależności od tematu, . . .
2K - last updated 2007-10-26 16:14 UTC by Marcin Borkowski
Porady LaTeXowe
Poniżej znajdują się różne porady dotyczące LaTeXa, czyli krótkie informacje o tym, jak osiągnąć dany . . . do własnego dokumentu. Zobacz też [[Pręgierz LaTeXowy|pręgierz LaTeXowy]], gdzie znajduje się podzbiór . . . po angielsku) * Polonizacja ** [[Polonizacja LaTeXa]] ** [[Cedilla zamiast ogonka]] ** [[Polskie cudzysłowy]] . . . (tekst po angielsku) * Instalacja i oporządzanie TeXa ** [[Ręczne instalowanie pakietów TeXowych]] ** . . . problemie z TDS i biblioteką kpathsea]] KategoriaTeX, KategoriaLaTeX, KategoriaLaTeXPorady . . .
2K - last updated 2009-09-20 02:52 UTC by Marcin Borkowski
Przykładowe dokumenty LaTeXowe
Poniżej znajdują się linki do przykładowe plików LaTeXowych wraz z komentarzami. Zachęcam do wykorzystania . . . do poniższych stron. * [[gad-pkty-stale.tex|Referat o zastosowaniach twierdzeń o punktach stałych]] . . . napisany po polsku. * [[regulamin-wmii.tex|Regulamin Samorządu Doktorantów Wydziału Matematyki . . . trików w preambule. * [[prezentacja-otwarcie-dr.tex|Prezentacja na otwarcie przewodu doktorskiego]] . . . użycia klasy beamer. * [[sum-multi-sample.tex|Fragment przykładowego artykułu]] (po angielsku) . . .
1K - last updated 2010-01-06 23:24 UTC by Marcin Borkowski
Pręgierz LaTeXowy
Zgodnie ze [[2008-04-01 Pręgierz |starą zapowiedzią]], poniżej zamieszczam różne dziwne błędy, jakie . . . napotkałem w plikach LaTeXowych pisanych przez różnych ludzi. Oczywiście, . . . jak tych błędów uniknąć. Zobacz też [[Porady LaTeXowe|porady LaTeXowe]]. * Matematyka ** [[Definiowanie . . . kropkach]] * Inne ** [[2010-01-19 Przedpotopowy TeX|Przedpotopowy TeX]] KategoriaTeX, KategoriaLaTeX, . . . KategoriaLaTeXPręgierz . . .
1K - last updated 2010-01-19 22:21 UTC by Marcin Borkowski
Ręczne instalowanie pakietów TeXowych
Czasami zachodzi potrzeba doinstalowania ręcznie jakiegoś pakietu (La)TeXowego, z pominięciem automatycznych . . . dostępnych w danej dystrybucji (tak było np. z TeXlive 2007, która zawierała pakiet {{{beamer}}} w . . . # Znajdź na swoim dysku katalog (folder) {{{localtexmf}}}. Może on być np. w {{{/usr/local/tex/localtexmf}}} . . . (Linux) albo w {{{C:\Program Files\MikTeX\localtexmf}}} (MikTeX), albo jeszcze gdzieś indziej . . . tym powinien znajdować się podkatalog {{{tex}}}. # Jeśli instalujemy pakiet LaTeXa, właściwym . . .
2K - last updated 2008-09-03 10:25 UTC by Marcin Borkowski
Slides about LaTeX editing.pdf
application/pdf
1278K - last updated 2013-05-18 22:45 UTC by Marcin Borkowski
Spacjowanie wokół dwukropka w trybie matematycznym
Każdy (przynajmniej -- każdy matematyk;)) widzi, że dwukropek w napisach: $\{x:x>0\}$ oraz $f\colon . . . sposób wpisania drugiej formuły to <LaTeX-source> $f\colon X\to Y$ </LaTeX-source> . . . KategoriaTeX, KategoriaLaTeX, KategoriaLaTeXPorady . . .
1K - last updated 2008-10-13 13:29 UTC by Marcin Borkowski
TeX
Na tej stronie staram się gromadzić różne rzeczy przydatne dla początkujących i bardziej zaawansowanych . . . TeXników. Jeśli nie wiesz, [[Co to jest TeX|co to jest . . . TeX]] lub [[TeX, LaTeX i s-ka|czym się różni TeX od . . . LaTeXa]], najwyższy czas się dowiedzieć;)! * [[TeXowe . . . linki]] * [[Przykładowe dokumenty LaTeXowe]] * [[Porady LaTeXowe]] * [[Dokumentacje LaTeXowe]] . . .
1K - last updated 2009-01-30 09:29 UTC by Marcin Borkowski
TeX, LaTeX i s-ka
W języku TeXa napisano wiele tzw. //formatów//, czyli zestawów poleceń wysokiego poziomu służących do . . . składu. Najbardziej znane to: plain TeX ===== Napisany przez samego Knutha. Jego zaletą . . . prostota; jest to zarazem wada, ponieważ plain TeX nie wspiera automatycznego numerowania równań, . . . skutki uboczne w innym. Wiele osób, mówiąc //TeX//, ma na myśli właśnie plaina, w odróżnieniu od . . . LaTeXa; w niniejszym serwisie słowo //TeX// jest używane . . .
2K - last updated 2008-03-13 12:01 UTC by Marcin Borkowski
TeX (en)
If you don't know what TeX is, you may visit [[http://tug.org]] and click [[http://tug.org/begin.html|Getting . . . started]] there. Happy TeXing! //News//: in September 2009, I gave a three-part . . . short LaTeX workshop for beginners at the Morgan State University . . . The materials for this workshop can be found [[LaTeX workshop|here]]. PS. There are quite a few links . . . to stuff about TeX on my [[TeXowe linki|TeX links (pl)]] and [[Dokumentacje . . .
1K - last updated 2009-10-29 22:14 UTC by Marcin Borkowski
TeX formats, engines and distributions
Many LaTeX beginners struggle with a few basic notions, so let us explain them here together. == TeX . . . formats On the basic ("primitive") commands of TeX, through clever use of macros, one can build elaborate . . . of them seem to be the most widespread: * plain TeX (written by D. E. Knuth himself) -- still very . . . and understand its codebase in a few days. * LaTeX (originally by Leslie Lamport, now by the LaTeX . . . -- much more high-level, the most widespread TeX format. Many people, when saying TeX, really mean . . .
3K - last updated 2012-09-19 19:35 UTC by Marcin Borkowski
TeXowe linki
* [[http://www.gust.org.pl|Grupa Użytkowników Systemu TeX]]: ** [[http://www.gust.org.pl/doc/tex_whatisit/|Co . . . to jest TeX?]] Najkrótsze wprowadzenie do systemu TeX, autorstwa . . . listy dyskusyjnej GUST]] * [[http://www.tug.org/|TeX Users Group]] * [[http://detexify.kirelabs.org/classify.html|Detexify2]] . . . -- narzędzie wyszukujące komendę LaTeX-ową na podstawie //rysunku// znaku, którego posuzkujemy. . . . * [[http://www.texample.net/|TeXample.net]] zawiera sporo materiałów . . .
1K - last updated 2013-10-21 07:35 UTC by Marcin Borkowski
The enumitem package
A very common question is how to change the numbering scheme for the {{{enumerate}}} environment (or . . . {{{enumitem}}}. Here is a short example: <LaTeX-source> \documentclass{article} \usepackage{enumitem} . . . Three. \end{enumerate} \end{document} </LaTeX-source> (similar options are provided for the . . . syntax (for example, you could say <LaTeX-source> \begin[label=\Alph:]{enumerate} </LaTeX-source> . . . closing bracket ("]") in the options will fool LaTeX---it means "options end here". If you want to get . . .
2K - last updated 2009-09-20 02:37 UTC by Marcin Borkowski
The fancyhdr package
The {{{fancyhdr}}} package enables us to change the headers and footers. As usual, the [[http://www.ctan.org/get/macros/latex/contrib/fancyhdr/fancyhdr.pdf|documentation]] . . . information---but first, a small example: <LaTeX-source> \documentclass{article} \usepackage{fancyhdr} . . . \begin{document} An example of \texttt{fancyhdr} package usage. \end{document} </LaTeX-source> . . .
2K - last updated 2009-09-21 00:54 UTC by Marcin Borkowski
The geometry package
The {{{geometry}}} package is extremely useful when you want to change the margin sizes (and many other . . . its [[http://www.ctan.org/get/macros/latex/contrib/geometry/geometry.pdf|documentation]]---but . . . we will show a simple example: <LaTeX-source> \documentclass{article} \usepackage[showframe, . . . (which is the default). \end{document} </LaTeX-source> Notice that too wide text column may . . .
1K - last updated 2009-09-20 20:15 UTC by Marcin Borkowski
What is LaTeX
LaTeX is a free (as in //free food//) "document preparation system", or more precisely, a system devised . . .
1K - last updated 2012-09-19 18:23 UTC by Marcin Borkowski
Zbyt duże spacje po kropkach
Nieraz widuję plik, w którym spacje np. po skrótach z kropką są zbyt duże w porównaniu do pozostałych, . . . ten jest chyba obcy polskiej typografii). TeX przestrzega tej reguły, jednak (oczywiście) nie . . . kropki kończącej skrót (z wyjątkiem inicjałów; TeX domyślnie nie zwiększa spacji po kropce, która . . . literze). Co zatem zrobić, gdy chcemy przekonać TeXa do niezwiększania spacji -- bądź ręcznie w przypadku . . . pierwszym przypadku wystarczy napisać np. <LaTeX-source> cf.\ previous chapter </LaTeX-source> . . .
3K - last updated 2008-11-10 13:25 UTC by Marcin Borkowski
Zmienianie wysokości indeksów dolnych
Zdarza się, że TeX umieszcza indeks dolny na innej wysokości, niż byśmy chcieli. Przykładowo, zapiszmy . . . można zmienić odpowiednie parametry TeXa, ale, przyznam szczerze, nigdy nie zagłębiałem . . . się dokładnie w Dodatek G //TeXbooka//, gdzie jest to opisane. Można jednak poradzić . . . niestety, nie pamiętam nazwiska autora...) Otóż TeX (ściślej: [[TeX, LaTeX i s-ka|plain TeX]], ale . . . LaTeX też) ma dwie komendy: {{{\smash}}} oraz {{{\vphantom}}}, . . .
3K - last updated 2008-12-19 10:41 UTC by Marcin Borkowski
dr.tex
Parę osób pytało mnie ostatnio o szablon doktoratu w LaTeXu. W końcu wziąłem mój doktorat, poświęciłem . . . warto [[http://mbork.pl/?action=rss;rcidonly=dr.tex|śledzić zmiany na tej stronie]]. <LaTeX-source> . . . \hyphenation{Hahna Zor-na} \let\tu=\textup \setenumerate[1]{label=\tu{\arabic*.},nolistsep} . . . \begin{quotation}\noindent\bfseries\textit{Uwaga!}} {\end{quotation}} \let\defd=\emph % . . . \newcommand{\krok}[2]{% \par\noindent\textit{\textbf{Krok~#1.}\ #2.\ \ignorespaces}} \newcommand{\wlasnosc}[2]{% . . .
11K - last updated 2010-01-06 23:29 UTC by Marcin Borkowski
dummy
Pliki {{{dummy.dtx}}} oraz {{{dummy.ins}}} stanowią przykład zastosowania programu {{{docstrip}}} i klasy . . . pliku kilku plików (np. klas czy pakietów LaTeXowych), które np. dzielą część kodu między sobą. . . . {{{gmdocc}}} służy do składu źródła pliku LaTeXowego wraz z komentarzami. Plik {{{dummy.dtx}}} . . . z klasy {{{dummy.cls}}}, czyli {{{dummy-test.tex}}}. Pliki te generuje się z niego poleceniem {{{tex . . . KategoriaLaTeX . . .
1K - last updated 2008-05-29 10:58 UTC by RadomirDopieralski
gad-pkty-stale.tex
Poniżej znajduje się tekst referatu o zastosowaniach twierdzeń o punktach stałych, dostępnego też w wersji . . . (zob. niżej). <LaTeX-source> %%%%%%%%%%%% Referat o punktach stałych . . . %%%%%%%%%%%% z objaśnieniami użytych poleceń LaTeXa. \documentclass[titleauthor]{mwart} % Klasa mwart . . . inputenc jest jednym ze sposobów % nauczenia LaTeXa polskich liter. Inne % sposoby to: % * tzw. notacja . . . ta może % wymagać uaktywnienia w konfiguracji % TeXa; % * stosowanie specjalnych wersji TeXa, % jak . . .
36K - last updated 2008-03-13 12:01 UTC by Marcin Borkowski
latex workshop
#REDIRECT [[LaTeX workshop]] . . .
1K - last updated 2009-09-20 19:52 UTC by Marcin Borkowski
latexworkshop
#REDIRECT [[LaTeX workshop]] . . .
1K - last updated 2012-03-05 20:48 UTC by Marcin Borkowski
prezentacja-otwarcie-dr.tex
Poniżej znajduje się źródło LaTeXowe prezentacji na otwarcie mojego przewodu doktorskiego, przygotowanej . . . jej wersją; np. wersja 3.06 (dostępna np. w The TeX Collection 2007) miała denerwującą usterkę (w szczególności . . . poniższą prezentację) w obsłudze kolorów. <LaTeX-source> %%%%%%%%%%%% Prezentacja na otwarcie . . . narzędziem do % przygotowywania prezentacji w LaTeXu. % Jej dokumentacja znajduje się w pliku % beameruserguide.pdf, . . . aktualną % wersję (w niektórych dystrybucjach % TeXa, np. w MikTeXu, zainstalowanie % najnowszej wersji . . .
14K - last updated 2008-04-01 21:39 UTC by Marcin Borkowski
regulamin-wmii.tex
Poniżej znajduje się tekst Regulaminu Samorządu Doktorantów WMiI UAM. Warto przejrzeć jego preambułę . . . \usepackage[...]{inputenc} (zob. niżej). <LaTeX-source> %%%%%%%%%%%% Regulamin Samorządu Doktorantów . . . %%%%%%%%%%%% z objaśnieniami użytych poleceń LaTeXa. \documentclass[11pt,oneside,final,wide]{mwart} . . . inputenc jest jednym ze sposobów % nauczenia LaTeXa polskich liter. Inne % sposoby to: % * tzw. notacja . . . ta może % wymagać uaktywnienia w konfiguracji % TeXa; % * stosowanie specjalnych wersji TeXa, % jak . . .
35K - last updated 2008-03-13 12:02 UTC by Marcin Borkowski
sum-multi-sample.tex
Poniżej znajduje się przykładowe źródło LaTeXowe fragmentu artykułu matematycznego ([[download:sum-multi-sample.pdf|tu . . . a przede wszystkim do eksperymentowania;). <LaTeX-source> %%%%%%%%%%%% A fixed point theorem for . . . does not % depend on external programs like BibTeX). \usepackage{amsrefs} % The ``amsrefs'' package . . . types with amsrefs is very easy (unlike % BibTeX)---the process is also well documented in amsrefs' . . . +{} {\PrintAuthors} {author} +{,} { \textit} {title} +{.} { } {part} +{:} { \textit} {subtitle} . . .
10K - last updated 2008-10-13 16:42 UTC by Marcin Borkowski
343 pages found.