sobota, 23 lutego 2013

Full page insertions without headers/footers

For some time I help WP in editing a journal for which LaTeX is used. The journal uses simple twocolum layout with multicolumn package. For headers/footers fancyhdr package is used. Recently I was asked to enable full page insertions with headers/footers suspended (probably for big advertisements).

The task is not as straightforward as it seems for a novice user of LaTeX. The following naive approach (\thispagestyle inside float environment) usually fails:


\begin{figure*}{p}
\thispagestyle{empty}
...
\end{figure}

LaTeX will supress headers/footers on the page at which \thispagestyle command was executed, not on the page at which the float was finally inserted. If the float is moved to the next page(s), headers/footers will be suspended on the wrong page.

Fortunately fancyhdr provides the \iffloatpage macro that can be used to customize headers and footers for pages which contain only floats. The use of \iffloatpage is simple:


\pagestyle{fancy}
%% supress rules
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}
\renewcommand{\footrulewidth}{\iffloatpage{0pt}{0.4pt}}
%%
\fancyhead[RO]{\iffloatpage{}{\PM@HeaderFont \@shorttitle}}
\fancyhead[LE]{\iffloatpage{}{\PM@HeaderFont \@shortauthorlist}}
%%
\fancyfoot[RO]{\iffloatpage{}{\PM@FooterFont\thepage}}
\fancyfoot[LE]{\iffloatpage{}{\PM@FooterFont\thepage}}

%% then in the document body:

\begin{figure*}{p}
%% --stuff to insert-- %%
\end{figure*}

Note: ``private'' (ie. defined in my class) commands \PM@HeaderFont/\PM@HeaderFont set the font for headers/footers and \@shorttitle/\@shortauthorlist insert some content.

czwartek, 14 lutego 2013

Jonas Wolk

W angielskiej wersji pamiętnika Rudolfa Hoessa jest taki oto pasus: ,,In this connection, I must make the following statement. I was opposed to Der Stuermer, Streicher's anti-semitic weekly, because of the disgusting sensationalism[...] This paper caused a lot of mischief and, far from serving serious anti-Semitism, it did it a great deal of harm. It is small wander that after a collapse it was learnt that a Jew edited the paper and that he also wrote the worst of the inflammatory articles it contained.'' I tu następuje dopisek tłumacza: ,,It is not known on what grounds Hoess makes this assertion, for which no evidence can be found.''

Otóż w materiałach Międzynarodowego Trybunału Wojskowego, które są udostępnione na stronach projektu Avalon. Znajduje się Document No. 1757-PS (Nazi Conspiracy and Aggression Volume IV) zawierający ,,Report of Goering's Commission for the investigation of the Aryanisations carried out in the Gau of Franconia between 9.11.38 and 9.2.39 and the irregularities connected there with which have been established'':

From 1934 to 1938 Gauleiter Streicher employed the Jew Jonas Wolk as contributor to the Stuermer. Wolk wrote for the Stuermer under the pseudonym of ,,Fritz Brandt''. In addition, Wolk did spy work for the Gauleiter abroad. From February 1937 to August 1938 the Stuermer paid the Jew Wolk a fee of Reichsmark 8,262.39. Wolk was previously convicted six times, among other things with loss of civic rights. It is especially significant that Streicher had the Jew Wolk paid by the Fraenkische Tageszeitung from 1934 to 1937. The Fraenkische Tageszeitung paid Wolk the sum of Reichmark 9,623.65

Na co wskazuje nazwa komisji była to kontrola sposobu przejęcia mienia żydowskiego w Franken gau (Gau of Franconia). Komisja pracowała w 1939 albo 1940 r. (w 1940 J. Straicher został usunięty z funkcji gauleitera).

Zapewne ów Jonas Wolk był renegatem opłacanym przez Streichera. Mógł nawet być Żydem wyłącznie w rozumieniu ustaw norymberskich a nie należeć do wspólnoty Żydowskiej i nie uważać się za Żyda. Tego typu ludzie zawsze byli i będą i m.in sukcesy policji każdego kraju są oparte na zatrudnianiu takich Wolków (co było wolno RSHA nie było wolno Straicherowi). Nie ma w tym epizodzie nic niezwykłego...

Nawiasem mówiąc jak się wpisze Wolk+Streicher do Google, to głównie pojawiają się strony różnych oszołomów (żeby nie powiedzieć durniów), w rodzaju Storm Frontu. Dla nich to pewnie ,,dowód'' na ,,przewrotność natury Żydów''...

Hoess został zatrzymany przez brytyjską żandarmerię niedaleko Flensburga 11 marca 1946 r. Już w maju 1946 r. został przekazany władzom polskim. Został skazany na śmierć a wyrok wykonano w kwietniu 1947 r. Pamiętnik został napisany w polskim więzieniu na początku 1947 r., a więc między innymi po wykonaniu wyroku na skazanych w głównym procesie norymberskim (październik 1946).

Rudolf Hoess: Commandant Of Auschwitz (Age of Dictators 1920--1945), Phoenix (isbn: 1842120247)

wtorek, 12 lutego 2013

Enabling bash beep command

To enable bash beep command (Fedora Core 15) one have to execute:


yum install beep

Then as root:


chmod 4755 /usr/bin/beep
# remove snd-pcsp module from blacklisted ones
vi /etc/modprobe.d/blacklist.conf

insert # before blacklist snd-pcsp.

Now Emacs beeps on errors as well. To disable this feature one has to add to .emacs


(setq visible-bell t)

The error is signaled by a screen flash now (see also [Emacs] AlarmBell).

1000 days online for pinkaccordions.homelinux.org

Today is the 1000th day that pinkaccordions.homelinux.org at sheevaplug is online.

During that period the only problem experienced was Sheevaplug's PSU breakdown.

Cf. Kopia zapasowa karty SDHC, rsync i problemy and Konfigurowanie Apacha (in Polish)