Tikz와 랩피그

Tikz와 랩피그

나는 다음에 표시된 솔루션을 사용했습니다.이 링크텍스트에서 일부 단락을 선택하는 방법입니다. 그러나 이 솔루션은 Wrapfig에서는 작동하지 않는 것 같습니다.

다음 MWE에서 처음 2개의 단락을 선택하려는 경우 2가지 옵션을 사용할 수 있습니다.

  • Wrapfig 앞에 \Startsquiggly 명령을 넣지만 불필요하게 공간이 추가됩니다.
  • 첫 번째 문단 바로 앞에 넣으세요. 그러면 완전히 재앙이 됩니다.

    \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}

여기에 이미지 설명을 입력하세요

관련 정보