Tikz 和wrappig

Tikz 和wrappig

我已經使用了中所示的解決方案這個連結作為從文本中選擇某些段落的方法。然而,這個解決方案似乎不適用於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時會產生不需要的效果,而將 放置在之後會產生令人討厭的結果(正如您所經歷的),因為那時會幹擾 所做的計算。\Startsquigglywrapfig\Startsquigglywrapfigwrapfig

這是在需要進行一些調整的情況下使用的可能解決方案:我修改了 的定義\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}

在此輸入影像描述

相關內容