Archive for verbatim

our closest enemy [verbatim]

Posted in Books, Travel with tags , , , , , , , , , , , , , , , , , on December 17, 2025 by xi'an

It was clear from day #1 of the Trump -2.0 presidency (or day #25 if waiting for JB Vance’s attacks  at the 61st Munich Security Conference) that it no longer considered Europe as a de facto ally, that the European Union should be terminated for being “set up to take advantage of” the USA, and  that that its regulations and institutions were attacking freedom of opinion—for far-right parties—and of conducting business—for American companies. The November National Security Strategy published by the White House makes this even clearer and shows how deeply it is aligned with the “great replacement” conspiracy theory of these white supremacy parties, as well as downsizing the Russian menace. Ghastly.

Continental Europe has been losing share of global GDP (…) partly owing to national and transnational regulations that undermine creativity and industriousness. But this economic decline is eclipsed by the real and more stark prospect of civilizational erasure. The larger issues facing Europe include activities of the European Union and other transnational bodies that undermine political liberty and sovereignty, migration policies that are transforming the continent and creating strife, censorship of free speech and suppression of political opposition, cratering birthrates, and loss of national identities and self-confidence. Should present trends continue, the continent will be unrecognizable in 20 years or less. As such, it is far from obvious whether certain European countries will have economies and militaries strong enough to remain reliable allies. Many of these nations are currently doubling down on their present path. We want Europe to remain European, to regain its civilizational self-confidence, and to abandon its failed focus on regulatory suffocation.

This lack of self-confidence is most evident in Europe’s relationship with Russia. European allies enjoy a significant hard power advantage over Russia by almost every measure, save nuclear weapons. As a result of Russia’s war in Ukraine, European relations with Russia are now deeply attenuated, and many Europeans regard Russia as an existential threat. Managing European relations with Russia will require significant U.S. diplomatic engagement, both to reestablish conditions of strategic stability across the Eurasian landmass, and to mitigate the risk of conflict between Russia and European states. It is a core interest of the United States to negotiate an expeditious cessation of hostilities in Ukraine, in order to stabilize European economies, prevent unintended escalation or expansion of the war, and reestablish strategic stability with Russia, as well as to enable the post-hostilities reconstruction of Ukraine to enable its survival as a viable state.

The Ukraine War has had the perverse effect of increasing Europe’s, especially Germany’s, external dependencies. (…) The Trump Administration finds itself at odds with European officials who hold unrealistic expectations for the war perched in unstable minority governments, many of which trample on basic principles of democracy to suppress opposition. A large European majority wants peace, yet that desire is not translated into policy, in large measure because of those governments’ subversion of democratic processes. This is strategically important to the United States precisely because European states cannot reform themselves if they are trapped in political crisis. Yet Europe remains strategically and culturally vital to the United States (…) Not only can we not afford to write Europe off—doing so would be self-defeating for what this strategy aims to achieve.

American diplomacy should continue to stand up for genuine democracy, freedom of expression, and unapologetic celebrations of European nations’ individual character and history. America encourages its political allies in Europe to promote this revival of spirit, and the growing influence of patriotic European parties indeed gives cause for great optimism. Our goal should be to help Europe correct its current trajectory. We will need a strong Europe to help us successfully compete, and to work in concert with us to prevent any adversary from dominating Europe. America is, understandably, sentimentally attached to the European continent (…) The character of these countries is also strategically important because we count upon creative, capable, confident, democratic allies to establish conditions of stability and security. We want to work with aligned countries that want to restore their former greatness.

Our broad policy for Europe should prioritize:
• Reestablishing conditions of stability within Europe and strategic stability with Russia;
• Enabling Europe to stand on its own feet and operate as a group of aligned sovereign nations, including by taking primary responsibility for its own defense, without being dominated by any adversarial power;
• Cultivating resistance to Europe’s current trajectory within European nations;
• Opening European markets to U.S. goods and services and ensuring fair treatment of U.S. workers and businesses;
• Building up the healthy nations of Central, Eastern, and Southern Europe through commercial ties, weapons sales, political collaboration, and cultural and educational exchanges;
• Ending the perception, and preventing the reality, of NATO as a perpetually expanding alliance; and
• Encouraging Europe to take action to combat mercantilist overcapacity, technological theft, cyber espionage, and other hostile economic practices.

and it only gets worse and worse and … [verbatim]

Posted in Books, pictures with tags , , , , , , , , , , , , , , , , , , , , , , , , on March 2, 2025 by xi'an

[Extracts from DT’s unhinged declarations on 19 Feb about Ukraine:]

“But today I heard: ‘Oh, well, we weren’t invited.’ Well, you’ve been there for three years. You should have ended it three years. You should have never started it. You could have made a deal.”

“A Dictator without Elections, Zelenskyy better move fast or he is not going to have a Country left. We have a situation where we haven’t had elections in Ukraine. Well, we have martial law, essentially martial law in Ukraine, where the leader in Ukraine, I mean, I hate to say it, but he’s down at 4% approval rating and where a country has been blown to smithereens. You got most of the cities are laying on their sides.”

“Russia does not intend to destroy Kyiv, if they had wanted to, they would have done it. Russia is capable of wiping out Ukrainian cities 100%, including Kyiv, but right now, they are only attacking at 20%.”

“Russia wants to do something. They want to stop the savage barbarianism [sic].”

[And more during the joint session with Emmanuel Macron, on 24 Feb.]

“I don’t use those words lightly [when asked whether or not Putin is a dictator], we’ll see how it all works out.”

“The European Union was formed in order to screw the United States. That’s the purpose of it, and they’ve done a good job of it.”

[With the newspeak winner about the January 6 rioters’ pardon]

“I pardoned J6 people who were assaulted by our government. They didn’t assault. They were assaulted, and what I did was a great thing for humanity.”

[All these quotes were recorded before the 28 Feb deliberate ambush of President Zelenskyy set by the boned spurred Agent Orange and his hillbilly Iago, reaching the all-times nadir of US international relations…]

a weird beamer feature…

Posted in Books, Kids, Linux, R, Statistics, University life with tags , , , , , , , , , , , , on September 24, 2014 by xi'an

As I was preparing my slides for my third year undergraduate stat course, I got a weird error that got a search on the Web to unravel:

[sourcecode language=”latex” gutter=”false”]
! Extra }, or forgotten \endgroup.
\endframe ->\egroup
\begingroup \def \@currenvir {frame}
l.23 \end{frame}
\begin{slide}
?
[/sourcecode]

which was related with a fragile environment

[sourcecode language=”latex” gutter=”false”]
\begin{frame}[fragile]
\frametitle{simulation in practice}
\begin{itemize}
\item For a given distribution $F$, call the corresponding
pseudo-random generator in an arbitrary computer language
\begin{verbatim}
> x=rnorm(10)
> x
[1] -0.021573 -1.134735 1.359812 -0.887579
[7] -0.749418 0.506298 0.835791 0.472144
\end{verbatim}
\item use the sample as a statistician would
\begin{verbatim}
> mean(x)
[1] 0.004892123
> var(x)
[1] 0.8034657
\end{verbatim}
to approximate quantities related with $F$
\end{itemize}
\end{frame}\begin{frame}
[/sourcecode]

but not directly the verbatim part: the reason for the bug was that the \end{frame} command did not have a line by itself! Which is one rare occurrence where the carriage return has an impact in LaTeX, as far as I know… (The same bug appears when there is an indentation at the beginning of the line. Weird!) [Another annoying feature is wordpress turning > into > in the sourcecode environment…]

\verbatim [beamer package]

Posted in R, Statistics, University life with tags , , , , , , on June 12, 2012 by xi'an

Once again working on my slides for the AMSI Lecture 2012 tour, it took me a while to get the following LaTeX code (about the family reunion puzzle) to work:

\begin{frame}[fragile,label=notleM2]
\slidetitle{A family meeting}
\begin{block}{Random switch of couples}
\only<1>{
\begin{itemize}
\item Pick two couples [among the 20 couples] at random with probabilities proportional
to the number of other couples they have not seen\\
{\verb+prob=apply(meet(T)==0,1,sum)+}
\item switch their respective position during one of the 6 courses
\item accept the switch with Metropolis--Hsatings probability\\
{\verb#log(runif(1))<(penalty(old)-penalty(new))/gamma#}
\end{itemize}
}
\only<2>{
\begin{verbatim}
for (t in 1:N){
  prop=sample(1:20,2,prob=apply(meet(T)==0,1,sum))
  cour=sample(1:6,1)
  Tp=T
  Tp[prop[1],cour]=T[prop[2],cour]
  Tp[prop[2],cour]=T[prop[1],cour]
  penatp=penalty(meet(Tp))
  if (log(runif(1))<(penat-penatp)/gamma){
    T=Tp
    penat=penatp}
  }
\end{verbatim}
}
\end{block}
\end{frame}

since I was getting error messages of the form

[sourcecode language=”latex” gutter=”false”]
[86] (./simulation.38.vrb) [87] (./simulation.39.vrb
!Illegal parameter number in definition of \beamer@doifinframe.
l
l.12 }
?
[/sourcecode]

Using two frames in a row instead of the “only<2>” version  did not help…
Continue reading →

what’s wrong with package comment?!

Posted in Books, R, Statistics, University life with tags , , , , on May 4, 2012 by xi'an

I spent most of the Sunday afternoon trying to understand why defining

[sourcecode language=”text” gutter=”false”]
\newcommand{\era}{\end{comment}}
[/sourcecode]

did not have the same effect as writing the line

[sourcecode language=”text” gutter=”false”]
\end{comment}
[/sourcecode]

until I found there is a clash due to the comment package… The assuredly simple code

[sourcecode language=”text” gutter=”false”]
\documentclass{book}
\usepackage{comment}
\begin{document}

\begin{comment}
prompt, you could embark on an on-line visit of the main features of {\tt R} by typing \verb+demo()+ after the prompt (make sure to test \verb+demo(image)+ and \verb+demo(graphics)+ to get an idea of the
\era

Self-explanatory.
\end{document}
[/sourcecode]

produces an error message:

[sourcecode language=”text” gutter=”false”]
Runaway argument?
! File ended while scanning use of \next.
<inserted text>
\par
<*> moretest.tex
[/sourcecode]

This is quite an inconvenience as I need to compile my solution manual for “Introducing Monte Carlo Methods with R” with the even-numbered exercises commented out or not depending on the version… (Leaving this package out and using the comment command within the verbatim package does not work either because era does not seem to be recognised as the end of a commented part…)