Tikz 和 wrapfig

Tikz 和 wrapfig

我使用了此链接以此来从文本中选择一些段落。但是,此解决方案似乎不适用于 wrapfig。

在以下 MWE 中,如果我想选择前 2 个段落,我可以有 2 个选项:

  • 将 \Startsquiggly 命令放在 wrapfig 之前,但它不必要地增加了额外的空间。
  • 将其放在第一段之前,但结果却是一场彻底的灾难。

    \documentclass[12pt,a4paper,twoside]{article}
    \usepackage{eurosym}
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{lmodern}
    \DeclareUnicodeCharacter{20AC}{\euro}
    \usepackage{microtype}
    \usepackage[spanish,english]{babel}
    \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
    \definecolor{gray}{RGB}{102, 102, 102}
    \usepackage{tabularx}
    \newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}
    \newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}
    \usepackage{multirow}
    \usepackage{graphicx}
    \usepackage[hang]{footmisc} 
    \usepackage{lettrine}
    \usepackage{wrapfig}
    \usepackage{comment}
    \usepackage{ulem} %alternativa a "soul"
    \usepackage{tikz}
    \usetikzlibrary{shapes.symbols}
    \usetikzlibrary{decorations.pathmorphing,calc}
    \usepackage[framemethod=TikZ]{mdframed}
    \pdfminorversion=6
    \usepackage[
      margin=2cm,
      includehead,
      headheight = 17mm,
      footskip = \dimexpr\headsep+\ht\strutbox\relax,
      tmargin = 0mm,
      bmargin = \dimexpr17mm+2\ht\strutbox\relax,
    ]{geometry}
    \usepackage{parskip}
    \usepackage{fancyhdr}
    \pagestyle{fancy}
    \renewcommand{\headrulewidth}{0pt}
    \fancyhf{}
    \fancyfoot[R] {\thepage}
    \usepackage{verbatim}
    \usepackage{textpos}
    \usepackage[hyphens]{url}
    \usepackage{hyperref}
    
    %https://tex.stackexchange.com/questions/175755/vertical-line-next-to-a-block-with-no-margins/
    \newcounter{tmp}
    \newcommand\tikzmark[1]{%
      \tikz[overlay,remember picture] \node (#1) {};}
    
    \def\separacionBarraInicial{.51}
    \def\separacionBarraFinal{.53}
    
    \newcommand\Startsquiggly{%
      \stepcounter{tmp}%
      \tikzmark{a}\label{a\thetmp}%
      \ifnum\getpagerefnumber{a\thetmp}=\getpagerefnumber{b\thetmp} \else
          \begin{tikzpicture}[overlay, remember picture]
            %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
            \draw [decorate,ultra thick,black]
              let \p1 = (a.north), \p2 = (b), \p3 = (current page.center) in
              ( $ (\x3,\y1) + (\separacionBarraInicial\textwidth,1ex) $ ) --
              ( $ (\x3,\y1) + (\separacionBarraFinal\textwidth,1ex) $ ) --  
              ( $ (\x3,\y3) + (\separacionBarraFinal\textwidth,-0.51\textheight) $ );
          \end{tikzpicture}%
      \fi%
    }
    
    
    \newcommand\Endsquiggly{%
    \tikzmark{b}\label{b\thetmp}
      \ifnum\getpagerefnumber{a\thetmp}=\getpagerefnumber{b\thetmp}
          \begin{tikzpicture}[overlay, remember picture]
            %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
            \draw [decorate,ultra thick,black]
              let \p1 = (a.north), \p2 = (b), \p3 = (current page.center) in
              ( $ (\x3,\y1) + (\separacionBarraInicial\textwidth,1ex) $ ) -- 
              ( $ (\x3,\y1) + (\separacionBarraFinal\textwidth,1ex) $ ) --  
              ( $ (\x3,\y2) + (\separacionBarraFinal\textwidth,-0.75ex) $ ) --
              ( $ (\x3,\y2) + (\separacionBarraInicial\textwidth,-0.75ex) $ );
          \end{tikzpicture}%
      \else
          \begin{tikzpicture}[overlay, remember picture]
            %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
            \draw [decorate,ultra thick,black]
              let \p1 = (a.north), \p2 = (b), \p3 = (current page.center) in
              ( $ (\x3,\y3) + (\separacionBarraFinal\textwidth,.495\textheight) $ ) -- 
              ( $ (\x3,\y2) + (\separacionBarraFinal\textwidth,-0.75ex) $ ) --
              ( $ (\x3,\y2) + (\separacionBarraInicial\textwidth,-0.75ex) $ );
          \end{tikzpicture}%
      \fi
    }
    
    \newcommand\Squ[1]{\Startsquiggly#1\Endsquiggly}
    
    \selectlanguage{English}
    \begin{document}
    \section{Examen oral 2}
    \colorbox{red}{\textbf{\Large\color{white}Time}}
    
    \href{http://content.time.com/time/world/article/0,8599,2000511,00.html#ixzz0yhJt0elU}{\textbf{\Large Mexico: Where Bullets Are Intimidating the Ballot}}
    
    \textcolor{gray}{\small By Ioan Grillo / Mexico City | Tuesday, Jun. 29, 2010}
    
    \Startsquiggly % --> doesn't work well here, it puts too much extra space
    \begin{wrapfigure}{R}{0.50\textwidth}
    \centering
    \vspace{-1em}
    \begin{tabularx}{0.47\textwidth}{X}
        \includegraphics[width=0.445\textwidth]{360_rodolfo_torre_0628.jpg} \\
        \hfill {\color{gray}EPA / STR} \\
        Forensic experts inspect the site in Ciudad Victoria, Mexico, where Rodolfo Torre Cantu, a candidate for governor in the northeastern Mexican state of Tamaulipas, was assassinated on June 28, 2010 \\
    \end{tabularx}
    \end{wrapfigure}
    
    %\Startsquiggly --> total disaster!
    Last Friday, June 25, gubernatorial candidate Rodolfo Torre raised both his arms to the sky in front of 15,000 cheering white-shirted supporters in a baseball stadium minutes from the Rio Grande. After he promised security in his violence-ridden border state of Tamaulipas, the crowd erupted to his campaign anthem, sung to the catchy tune of the smash hit ``I Gotta Feeling'' by U.S. pop band Black Eyed Peas. They had reason for celebration. Opinion polls all concurred that the mustachioed physician would win the July 4 election by a landslide of more than 30 points. But on Monday, as Torre left the state capital to conclude his campaign, assailants showered his convoy with gunfire from automatic rifles and heavy-caliber weapons, killing him instantly. Army commanders said the attack bore all the signs of the Zetas, a paramilitary drug gang that was born in the state.
    
    Mexico's highest-profile political assassination since the 1994 murder of presidential candidate Luis Donaldo Colosio was a blow not only to Torre's supporters but to the nation's entire ailing democracy. On July 4, voters will choose governors in 12 of 31 states in a ``Super Sunday'' of local elections. The ballots come almost exactly a decade after the nation voted to end 71 years of one-party rule. But rather than showcasing the success of multiparty democracy, the campaigns have highlighted its hazards. Races have been dampened by arrests of candidates on racketeering charges, leaked tapes of organized vote buying and a succession of violent attacks. After the Torre killing, some politicians asked for half of the races to be suspended. ``This is extremely worrying,'' says political scientist Maria Eugenia Valdes. ``If there is fear and violence, there is no freedom. And if there is no freedom, we cannot have fair elections.''
    \Endsquiggly
    
    
    A key problem is that many of the polls are in the states hardest hit by the relentless drug war, including Chihuahua, home to Ciudad Juárez, which has a reputation for being one of the most dangerous cities in the world, and Sinaloa, the cradle of Mexican organized crime. Tamaulipas, a state that shares a border with Texas and has three of the busiest land cargo-crossing points into the U.S., has this year been engulfed by bloody battles between the Zetas and their old masters in the Gulf cartel. Back in the 1990s, the cartel founded the Zetas, recruiting defectors from the army special forces to be its brutal enforcers. But the Zetas broke away to smuggle their own drugs as well as carry out rampant extortion and kidnapping. The fighting has littered the Tamaulipas streets with hundreds of bodies and led to prolonged shoot-outs that have shut down schools and workplaces.
    
    The Zetas have also suffered ? hit heavily by arrests, firefights with the army and the actions of rival gangs in other states, including Sinaloa, where 28 of their alleged members were slaughtered in a prison riot. Such devastating losses could have led them to lash out against the establishment.
    
    The violence in Tamaulipas has scarred all the major political parties. Last month, triggermen silenced a mayoral candidate from the conservative National Action Party (PAN) of President Felipe Calderón, gunning him and his son down in his farm-supplies store in the town of Valle Hermoso. In nearby Nuevo Laredo, assassins wiped out two people close to the mayoral candidate of the leftist Democratic Revolution Party (PRD), then strung up banners warning, ``This is what happens to everyone who supports these f\_\_\_\_\_\_ people.'' Gubernatorial candidate Torre had been a lifelong member of the centrist Institutional Revolutionary Party (PRI), which currently controls Tamaulipas. While focusing on law and order, the 46-year-old former federal deputy had made no radical or controversial proposals.
    
    
    As politicians of all stripes rushed to Tamaulipas to condemn the murder, Calderón called for a united front against narco-butchery. ``I'm convinced today more than ever that we need dialogue and unity,'' he said from his presidential palace. ``Because together, Mexicans can defeat and will defeat this common enemy, which threatens to destroy not only our tranquillity but also our democratic institutions.'' Electoral officials said the Tamaulipas election would go on as scheduled, and PRI leaders promised a substitute candidate, saying they would not be intimidated.
    
    However, the campaigns have led to some fierce mudslinging among the parties. When the PRD gubernatorial candidate in the state of Quintana Roo was arrested for allegedly working with the Zetas, party leaders accused the federal government of framing him in a political persecution. Later, following leaked tapes of alleged electoral shenanigans by the PRI, its governors lashed out at the federal government for wiretapping them. PRI Senator Adolfo Toledo then blamed bad blood for creating a hostile environment that was conducive to Monday's murder. ``What has happened is terrible, but it is the result of the heated confrontations supported by the PAN and the federal government that finally ended in the first victim,'' Toledo told TIME.
    
    Voter turnout will be a key barometer of how intimidated the electorate has become, with some likely to stay at home in the same way many avoided the polls in war-torn Iraq and El Salvador. Electoral observers say the intimidation and corruption will probably lead to the courts' ultimately ruling on the results of up to half of the races. ``We are seeing more and more elections being decided by judges,'' says Francisco Abundis of the polling firm Parametria. ``That is a very bad sign.'' Looking ahead, pundits fear that the problems bedeviling these votes may be a mere taste of those that could ravage the country's next presidential election, due in 2012.
    
    \textit{-- With reporting by Dolly Mascareñas / Oaxaca}
    \end{document}
    

有什么可能的解决办法吗?

答案1

由于wrapfig会影响某些内部长度,当\Startsquiggly将 放置在 之前时,会产生不良效果wrapfig,而将 放置\Startsquiggly在 之后wrapfig则会产生令人讨厌的结果(正如您所经历的),因为这会干扰 所做的计算wrapfig

\Startsquiggly在需要进行一些调整的情况下,可以使用以下可能的解决方案:我修改了和的定义\Endsquiggly,因此现在它们接收一个可选参数,允许调整装饰起始部分的垂直位置。使用这些新命令,我还定义了一个Squiggly环境,它也有一个可选参数,允许调整垂直位置。

\documentclass[12pt,a4paper,twoside]{article}
\usepackage{eurosym}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\DeclareUnicodeCharacter{20AC}{\euro}
\usepackage{microtype}
\usepackage[spanish,english]{babel}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\definecolor{gray}{RGB}{102, 102, 102}
\usepackage{tabularx}
\newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}
\newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}
\usepackage{multirow}
\usepackage[demo]{graphicx}
\usepackage[hang]{footmisc} 
\usepackage{lettrine}
\usepackage{wrapfig}
\usepackage{comment}
\usepackage{ulem} %alternativa a "soul"
\usepackage{tikz}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{decorations.pathmorphing,calc}
\usepackage[framemethod=TikZ]{mdframed}
\pdfminorversion=6
\usepackage[
  margin=2cm,
  includehead,
  headheight = 17mm,
  footskip = \dimexpr\headsep+\ht\strutbox\relax,
  tmargin = 0mm,
  bmargin = \dimexpr17mm+2\ht\strutbox\relax,
]{geometry}
\usepackage{parskip}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancyfoot[R] {\thepage}
\usepackage{verbatim}
\usepackage{textpos}
\usepackage[hyphens]{url}
\usepackage{hyperref}

%http://tex.stackexchange.com/questions/175755/vertical-line-next-to-a-block-with-no-margins/
\newcounter{tmp}
\newcommand\tikzmark[1]{%
  \tikz[overlay,remember picture] \node (#1) {};}

\def\separacionBarraInicial{.51}
\def\separacionBarraFinal{.53}

\newcommand\Startsquiggly[1][0pt]{%
  \stepcounter{tmp}%
  \tikzmark{a}\label{a\thetmp}%
  \ifnum\getpagerefnumber{a\thetmp}=\getpagerefnumber{b\thetmp}\else
      \begin{tikzpicture}[overlay, remember picture]
        %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
        \draw [decorate,ultra thick,black]
          let \p1 = (a.north), \p2 = (a), \p3 = (current page.center) in
          ( $ (\x3,\y1) + (\separacionBarraInicial\textwidth,\dimexpr#1+1ex\relax) $ ) --
          ( $ (\x3,\y1) + (\separacionBarraFinal\textwidth,\dimexpr#1+1ex\relax) $ ) --  
          ( $ (\x3,\y3) + (\separacionBarraFinal\textwidth,-0.51\textheight) $ );
      \end{tikzpicture}%
  \fi%
}

\newcommand\Endsquiggly[1][0pt]{%
\tikzmark{b}\label{b\thetmp}
  \ifnum\getpagerefnumber{a\thetmp}=\getpagerefnumber{b\thetmp}
      \begin{tikzpicture}[overlay, remember picture]
        %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
        \draw [decorate,ultra thick,black]
          let \p1 = (a.north), \p2 = (b), \p3 = (current page.center) in
          ( $ (\x3,\y1) + (\separacionBarraInicial\textwidth,\dimexpr#1+1ex\relax) $ ) -- 
          ( $ (\x3,\y1) + (\separacionBarraFinal\textwidth,\dimexpr#1+1ex\relax) $ ) --  
          ( $ (\x3,\y2) + (\separacionBarraFinal\textwidth,-0.75ex) $ ) --
          ( $ (\x3,\y2) + (\separacionBarraInicial\textwidth,-0.75ex) $ );
      \end{tikzpicture}%
  \else
      \begin{tikzpicture}[overlay, remember picture]
        %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
        \draw [decorate,ultra thick,black]
          let \p1 = (a.north), \p2 = (b), \p3 = (current page.center) in
          ( $ (\x3,\y3) + (\separacionBarraFinal\textwidth,.495\textheight) $ ) -- 
          ( $ (\x3,\y2) + (\separacionBarraFinal\textwidth,-0.75ex) $ ) --
          ( $ (\x3,\y2) + (\separacionBarraInicial\textwidth,-0.75ex) $ );
      \end{tikzpicture}%
  \fi
}

\newcommand\Squ[1]{\Startsquiggly#1\Endsquiggly}

\newenvironment{Squiggly}[1][0pt]
  {\gdef\tmp{#1}\Startsquiggly[\tmp]}
  {\Endsquiggly[\tmp]}

\selectlanguage{English}
\begin{document}
\section{Examen oral 2}
\colorbox{red}{\textbf{\Large\color{white}Time}}

\href{http://content.time.com/time/world/article/0,8599,2000511,00.html#ixzz0yhJt0elU}{\textbf{\Large Mexico: Where Bullets Are Intimidating the Ballot}}

\textcolor{gray}{\small By Ioan Grillo / Mexico City | Tuesday, Jun. 29, 2010}

\begin{Squiggly}[-4ex] % --> adjust at will
\begin{wrapfigure}{R}{0.50\textwidth}
\centering
\vspace{-1em}
\begin{tabularx}{0.47\textwidth}{X}
    \includegraphics[width=0.445\textwidth]{360_rodolfo_torre_0628.jpg} \\
    \hfill {\color{gray}EPA / STR} \\
    Forensic experts inspect the site in Ciudad Victoria, Mexico, where Rodolfo Torre Cantu, a candidate for governor in the northeastern Mexican state of Tamaulipas, was assassinated on June 28, 2010 \\
\end{tabularx}
\end{wrapfigure}

%\Startsquiggly --> total disaster!
Last Friday, June 25, gubernatorial candidate Rodolfo Torre raised both his arms to the sky in front of 15,000 cheering white-shirted supporters in a baseball stadium minutes from the Rio Grande. After he promised security in his violence-ridden border state of Tamaulipas, the crowd erupted to his campaign anthem, sung to the catchy tune of the smash hit ``I Gotta Feeling'' by U.S. pop band Black Eyed Peas. They had reason for celebration. Opinion polls all concurred that the mustachioed physician would win the July 4 election by a landslide of more than 30 points. But on Monday, as Torre left the state capital to conclude his campaign, assailants showered his convoy with gunfire from automatic rifles and heavy-caliber weapons, killing him instantly. Army commanders said the attack bore all the signs of the Zetas, a paramilitary drug gang that was born in the state.

Mexico's highest-profile political assassination since the 1994 murder of presidential candidate Luis Donaldo Colosio was a blow not only to Torre's supporters but to the nation's entire ailing democracy. On July 4, voters will choose governors in 12 of 31 states in a ``Super Sunday'' of local elections. The ballots come almost exactly a decade after the nation voted to end 71 years of one-party rule. But rather than showcasing the success of multiparty democracy, the campaigns have highlighted its hazards. Races have been dampened by arrests of candidates on racketeering charges, leaked tapes of organized vote buying and a succession of violent attacks. After the Torre killing, some politicians asked for half of the races to be suspended. ``This is extremely worrying,'' says political scientist Maria Eugenia Valdes. ``If there is fear and violence, there is no freedom. And if there is no freedom, we cannot have fair elections.''
\end{Squiggly}

A key problem is that many of the polls are in the states hardest hit by the relentless drug war, including Chihuahua, home to Ciudad Juárez, which has a reputation for being one of the most dangerous cities in the world, and Sinaloa, the cradle of Mexican organized crime. Tamaulipas, a state that shares a border with Texas and has three of the busiest land cargo-crossing points into the U.S., has this year been engulfed by bloody battles between the Zetas and their old masters in the Gulf cartel. Back in the 1990s, the cartel founded the Zetas, recruiting defectors from the army special forces to be its brutal enforcers. But the Zetas broke away to smuggle their own drugs as well as carry out rampant extortion and kidnapping. The fighting has littered the Tamaulipas streets with hundreds of bodies and led to prolonged shoot-outs that have shut down schools and workplaces.

The Zetas have also suffered ? hit heavily by arrests, firefights with the army and the actions of rival gangs in other states, including Sinaloa, where 28 of their alleged members were slaughtered in a prison riot. Such devastating losses could have led them to lash out against the establishment.

The violence in Tamaulipas has scarred all the major political parties. Last month, triggermen silenced a mayoral candidate from the conservative National Action Party (PAN) of President Felipe Calderón, gunning him and his son down in his farm-supplies store in the town of Valle Hermoso. In nearby Nuevo Laredo, assassins wiped out two people close to the mayoral candidate of the leftist Democratic Revolution Party (PRD), then strung up banners warning, ``This is what happens to everyone who supports these f\_\_\_\_\_\_ people.'' Gubernatorial candidate Torre had been a lifelong member of the centrist Institutional Revolutionary Party (PRI), which currently controls Tamaulipas. While focusing on law and order, the 46-year-old former federal deputy had made no radical or controversial proposals.


As politicians of all stripes rushed to Tamaulipas to condemn the murder, Calderón called for a united front against narco-butchery. ``I'm convinced today more than ever that we need dialogue and unity,'' he said from his presidential palace. ``Because together, Mexicans can defeat and will defeat this common enemy, which threatens to destroy not only our tranquillity but also our democratic institutions.'' Electoral officials said the Tamaulipas election would go on as scheduled, and PRI leaders promised a substitute candidate, saying they would not be intimidated.

However, the campaigns have led to some fierce mudslinging among the parties. When the PRD gubernatorial candidate in the state of Quintana Roo was arrested for allegedly working with the Zetas, party leaders accused the federal government of framing him in a political persecution. Later, following leaked tapes of alleged electoral shenanigans by the PRI, its governors lashed out at the federal government for wiretapping them. PRI Senator Adolfo Toledo then blamed bad blood for creating a hostile environment that was conducive to Monday's murder. ``What has happened is terrible, but it is the result of the heated confrontations supported by the PAN and the federal government that finally ended in the first victim,'' Toledo told TIME.

Voter turnout will be a key barometer of how intimidated the electorate has become, with some likely to stay at home in the same way many avoided the polls in war-torn Iraq and El Salvador. Electoral observers say the intimidation and corruption will probably lead to the courts' ultimately ruling on the results of up to half of the races. ``We are seeing more and more elections being decided by judges,'' says Francisco Abundis of the polling firm Parametria. ``That is a very bad sign.'' Looking ahead, pundits fear that the problems bedeviling these votes may be a mere taste of those that could ravage the country's next presidential election, due in 2012.

\textit{-- With reporting by Dolly Mascareñas / Oaxaca}
\end{document}

在此处输入图片描述

\Startsquiggly我在代码中修复了定义中的标记问题。

一个新的变体,具有注释中所需的功能,用于控制分页时文本区域底部和装饰底部之间的距离;环境Squiggly现在有第二个可选参数,其值将从默认长度中减去:

\documentclass[12pt,a4paper,twoside]{article}
\usepackage{eurosym}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\DeclareUnicodeCharacter{20AC}{\euro}
\usepackage{microtype}
\usepackage[spanish,english]{babel}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\definecolor{gray}{RGB}{102, 102, 102}
\usepackage{tabularx}
\newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}
\newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}
\usepackage{multirow}
\usepackage[demo]{graphicx}
\usepackage[hang]{footmisc} 
\usepackage{lettrine}
\usepackage{wrapfig}
\usepackage{xparse}
\usepackage{comment}
\usepackage{ulem} %alternativa a "soul"
\usepackage{tikz}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{decorations.pathmorphing,calc}
\usepackage[framemethod=TikZ]{mdframed}
\pdfminorversion=6
\usepackage[
  margin=2cm,
  includehead,
  headheight = 17mm,
  footskip = \dimexpr\headsep+\ht\strutbox\relax,
  tmargin = 0mm,
  bmargin = \dimexpr17mm+2\ht\strutbox\relax,
]{geometry}
\usepackage{parskip}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancyfoot[R] {\thepage}
\usepackage{verbatim}
\usepackage{textpos}
\usepackage[hyphens]{url}
\usepackage{hyperref}

%http://tex.stackexchange.com/questions/175755/vertical-line-next-to-a-block-with-no-margins/
\newcounter{tmp}
\newcommand\tikzmark[1]{%
  \tikz[overlay,remember picture] \node (#1) {};}

\def\separacionBarraInicial{.51}
\def\separacionBarraFinal{.53}

\NewDocumentCommand\Startsquiggly{O{0pt}O{0pt}}{%
  \stepcounter{tmp}%
  \tikzmark{a}\label{a\thetmp}%
  \ifnum\getpagerefnumber{a\thetmp}=\getpagerefnumber{b\thetmp}\else
      \begin{tikzpicture}[overlay, remember picture]
        %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
        \draw [decorate,ultra thick,black]
          let \p1 = (a.north), \p2 = (a), \p3 = (current page.center) in
          ( $ (\x3,\y1) + (\separacionBarraInicial\textwidth,\dimexpr#1+1ex\relax) $ ) --
          ( $ (\x3,\y1) + (\separacionBarraFinal\textwidth,\dimexpr#1+1ex\relax) $ ) --  
          ( $ (\x3,\y3) + (\separacionBarraFinal\textwidth,-0.51\textheight-#2) $ );
      \end{tikzpicture}%
  \fi%
}

\newcommand\Endsquiggly[1][0pt]{%
\tikzmark{b}\label{b\thetmp}
  \ifnum\getpagerefnumber{a\thetmp}=\getpagerefnumber{b\thetmp}
      \begin{tikzpicture}[overlay, remember picture]
        %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
        \draw [decorate,ultra thick,black]
          let \p1 = (a.north), \p2 = (b), \p3 = (current page.center) in
          ( $ (\x3,\y1) + (\separacionBarraInicial\textwidth,\dimexpr#1+1ex\relax) $ ) -- 
          ( $ (\x3,\y1) + (\separacionBarraFinal\textwidth,\dimexpr#1+1ex\relax) $ ) --  
          ( $ (\x3,\y2) + (\separacionBarraFinal\textwidth,-0.75ex) $ ) --
          ( $ (\x3,\y2) + (\separacionBarraInicial\textwidth,-0.75ex) $ );
      \end{tikzpicture}%
  \else
      \begin{tikzpicture}[overlay, remember picture]
        %\draw [decoration={coil,aspect=0},decorate,ultra thick,gray]
        \draw [decorate,ultra thick,black]
          let \p1 = (a.north), \p2 = (b), \p3 = (current page.center) in
          ( $ (\x3,\y3) + (\separacionBarraFinal\textwidth,.495\textheight) $ ) -- 
          ( $ (\x3,\y2) + (\separacionBarraFinal\textwidth,-0.75ex) $ ) --
          ( $ (\x3,\y2) + (\separacionBarraInicial\textwidth,-0.75ex) $ );
      \end{tikzpicture}%
  \fi
}

\newcommand\Squ[1]{\Startsquiggly#1\Endsquiggly}

\NewDocumentEnvironment{Squiggly}{O{0pt}O{0pt}}
  {\gdef\tmp{#1}\Startsquiggly[\tmp][#2]}
  {\Endsquiggly[\tmp]}

\selectlanguage{English}
\begin{document}
\section{Examen oral 2}
\colorbox{red}{\textbf{\Large\color{white}Time}}

\href{http://content.time.com/time/world/article/0,8599,2000511,00.html#ixzz0yhJt0elU}{\textbf{\Large Mexico: Where Bullets Are Intimidating the Ballot}}

\textcolor{gray}{\small By Ioan Grillo / Mexico City | Tuesday, Jun. 29, 2010}

\begin{Squiggly}[-4ex] % --> adjust at will
\begin{wrapfigure}{R}{0.50\textwidth}
\centering
\vspace{-1em}
\begin{tabularx}{0.47\textwidth}{X}
    \includegraphics[width=0.445\textwidth]{360_rodolfo_torre_0628.jpg} \\
    \hfill {\color{gray}EPA / STR} \\
    Forensic experts inspect the site in Ciudad Victoria, Mexico, where Rodolfo Torre Cantu, a candidate for governor in the northeastern Mexican state of Tamaulipas, was assassinated on June 28, 2010 \\
\end{tabularx}
\end{wrapfigure}

%\Startsquiggly --> total disaster!
Last Friday, June 25, gubernatorial candidate Rodolfo Torre raised both his arms to the sky in front of 15,000 cheering white-shirted supporters in a baseball stadium minutes from the Rio Grande. After he promised security in his violence-ridden border state of Tamaulipas, the crowd erupted to his campaign anthem, sung to the catchy tune of the smash hit ``I Gotta Feeling'' by U.S. pop band Black Eyed Peas. They had reason for celebration. Opinion polls all concurred that the mustachioed physician would win the July 4 election by a landslide of more than 30 points. But on Monday, as Torre left the state capital to conclude his campaign, assailants showered his convoy with gunfire from automatic rifles and heavy-caliber weapons, killing him instantly. Army commanders said the attack bore all the signs of the Zetas, a paramilitary drug gang that was born in the state.

Mexico's highest-profile political assassination since the 1994 murder of presidential candidate Luis Donaldo Colosio was a blow not only to Torre's supporters but to the nation's entire ailing democracy. On July 4, voters will choose governors in 12 of 31 states in a ``Super Sunday'' of local elections. The ballots come almost exactly a decade after the nation voted to end 71 years of one-party rule. But rather than showcasing the success of multiparty democracy, the campaigns have highlighted its hazards. Races have been dampened by arrests of candidates on racketeering charges, leaked tapes of organized vote buying and a succession of violent attacks. After the Torre killing, some politicians asked for half of the races to be suspended. ``This is extremely worrying,'' says political scientist Maria Eugenia Valdes. ``If there is fear and violence, there is no freedom. And if there is no freedom, we cannot have fair elections.''
\end{Squiggly}

\begin{Squiggly}[0pt][-38pt]
A key problem is that many of the polls are in the states hardest hit by the relentless drug war, including Chihuahua, home to Ciudad Juárez\footnote{A test footnote just for the example}, which has a reputation for being one of the most dangerous cities in the world, and Sinaloa\footnote{A test footnote just for the example}, the cradle of Mexican organized crime. Tamaulipas, a state that shares a border with Texas and has three of the busiest land cargo-crossing points into the U.S., has this year been engulfed by bloody battles between the Zetas and their old masters in the Gulf cartel. Back in the 1990s, the cartel founded the Zetas, recruiting defectors from the army special forces to be its brutal enforcers. But the Zetas broke away to smuggle their own drugs as well as carry out rampant extortion and kidnapping. The fighting has littered the Tamaulipas streets with hundreds of bodies and led to prolonged shoot-outs that have shut down schools and workplaces.

The Zetas have also suffered ? hit heavily by arrests, firefights with the army and the actions of rival gangs in other states, including Sinaloa, where 28 of their alleged members were slaughtered in a prison riot. Such devastating losses could have led them to lash out against the establishment.

The violence in Tamaulipas has scarred all the major political parties. Last month, triggermen silenced a mayoral candidate from the conservative National Action Party (PAN) of President Felipe Calderón, gunning him and his son down in his farm-supplies store in the town of Valle Hermoso. In nearby Nuevo Laredo, assassins wiped out two people close to the mayoral candidate of the leftist Democratic Revolution Party (PRD), then strung up banners warning, ``This is what happens to everyone who supports these f\_\_\_\_\_\_ people.'' Gubernatorial candidate Torre had been a lifelong member of the centrist Institutional Revolutionary Party (PRI), which currently controls Tamaulipas. While focusing on law and order, the 46-year-old former federal deputy had made no radical or controversial proposals.
\end{Squiggly}

As politicians of all stripes rushed to Tamaulipas to condemn the murder, Calderón called for a united front against narco-butchery. ``I'm convinced today more than ever that we need dialogue and unity,'' he said from his presidential palace. ``Because together, Mexicans can defeat and will defeat this common enemy, which threatens to destroy not only our tranquillity but also our democratic institutions.'' Electoral officials said the Tamaulipas election would go on as scheduled, and PRI leaders promised a substitute candidate, saying they would not be intimidated.

However, the campaigns have led to some fierce mudslinging among the parties. When the PRD gubernatorial candidate in the state of Quintana Roo was arrested for allegedly working with the Zetas, party leaders accused the federal government of framing him in a political persecution. Later, following leaked tapes of alleged electoral shenanigans by the PRI, its governors lashed out at the federal government for wiretapping them. PRI Senator Adolfo Toledo then blamed bad blood for creating a hostile environment that was conducive to Monday's murder. ``What has happened is terrible, but it is the result of the heated confrontations supported by the PAN and the federal government that finally ended in the first victim,'' Toledo told TIME.

Voter turnout will be a key barometer of how intimidated the electorate has become, with some likely to stay at home in the same way many avoided the polls in war-torn Iraq and El Salvador. Electoral observers say the intimidation and corruption will probably lead to the courts' ultimately ruling on the results of up to half of the races. ``We are seeing more and more elections being decided by judges,'' says Francisco Abundis of the polling firm Parametria. ``That is a very bad sign.'' Looking ahead, pundits fear that the problems bedeviling these votes may be a mere taste of those that could ravage the country's next presidential election, due in 2012.

\textit{-- With reporting by Dolly Mascareñas / Oaxaca}
\end{document}

在此处输入图片描述

相关内容