LaTeX forum ⇒ Graphics, Figures & TablesFormating table in \begingroup

Information and discussion about graphics, figures & tables in LaTeX documents.
hicham
Posts: 5
Joined: Mon Mar 13, 2017 3:33 pm

Formating table in \begingroup

Postby hicham » Mon Mar 20, 2017 9:50 pm

Hello every Body;

Please I want inserting a table in \begingroup:
CODE:

  1. \begingroup
  2. \setbeamertemplate{headline}{}
  3. \begin{frame}
  4. \tikz[remember picture,overlay]
  5. \node[anchor=north east,yshift=2pt] at (current page.north east)
  6. {\includegraphics[height=1.6cm,width=2.5cm]{Logo 1} \hspace*{8.2cm}~\includegraphics[height=1.6cm,width=1.8cm]{Logo 2}};
  7. \titlepage
  8. \begin{tabular}{llll}
  9. $Mr.$ & \textsc{.............................} & TTTTTTT, ............, & ( ZZZZZZZ ) \\ %{xxxxxxxxxxxxxxxx}
  10. & &WWWWW de .....................................&\\
  11. $Mr.$ & \textsc{.............................} & TTTTTTT, ............, & ( ZZZZZZZ ) \\ %{xxxxxxxxxxxxxxxx}
  12. & &WWWWW de .....................................&\\
  13. $Mr.$ & \textsc{.............................} & TTTTTTT, ............, & ( ZZZZZZZ ) \\ %{xxxxxxxxxxxxxxxx}
  14. & &WWWWW de .....................................&\\
  15. \end{tabular}
  16. \end{frame}
  17. \endgroup
Last edited by Stefan Kottwitz on Tue Mar 21, 2017 7:05 am, edited 1 time in total.
Reason: code marked

User avatar
Stefan Kottwitz
Site Admin
Posts: 8075
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Tue Mar 21, 2017 7:04 am

Hi, this code works for me. There is no error. What is the problem?

Here is the document completed to allow to test it:

  1. \documentclass[demo]{beamer}
  2. \usepackage{tikz}
  3. \begin{document}
  4. \begingroup
  5. \setbeamertemplate{headline}{}
  6. \begin{frame}
  7. \tikz[remember picture,overlay]
  8. \node[anchor=north east,yshift=2pt] at (current page.north east)
  9. {\includegraphics[height=1.6cm,width=2.5cm]{Logo 1} \hspace*{8.2cm}~\includegraphics[height=1.6cm,width=1.8cm]{Logo 2}};
  10. \titlepage
  11. \begin{tabular}{llll}
  12. $Mr.$ & \textsc{.............................} & TTTTTTT, ............, & ( ZZZZZZZ ) \\ %{xxxxxxxxxxxxxxxx}
  13. & &WWWWW de .....................................&\\
  14. $Mr.$ & \textsc{.............................} & TTTTTTT, ............, & ( ZZZZZZZ ) \\ %{xxxxxxxxxxxxxxxx}
  15. & &WWWWW de .....................................&\\
  16. $Mr.$ & \textsc{.............................} & TTTTTTT, ............, & ( ZZZZZZZ ) \\ %{xxxxxxxxxxxxxxxx}
  17. & &WWWWW de .....................................&\\
  18. \end{tabular}
  19. \end{frame}
  20. \endgroup
  21. \end{document}


You can click on "Open in Overleaf" to test in the online LaTeX editor.

Stefan
Site admin

hicham
Posts: 5
Joined: Mon Mar 13, 2017 3:33 pm

Postby hicham » Tue Mar 21, 2017 5:29 pm

in reality no error message sending but no thing in output.

the main is to insert names of jury members in the first frame of my presentation.

Thank you

hicham
Posts: 5
Joined: Mon Mar 13, 2017 3:33 pm

Postby hicham » Tue Mar 21, 2017 5:40 pm

My code is done, with a long definition after \begin{document}, is done like this:


  1. \documentclass{beamer}
  2. \setbeamertemplate{navigation symbols}{}
  3. \usepackage{beamerthemeshadow}
  4. \usecolortheme{goeagles}
  5. \usepackage{xspace}
  6. \usepackage[absolute,overlay]{textpos}
  7.  
  8. \usepackage{amsmath,amsfonts,amssymb,mathrsfs}
  9. \usepackage[utf8]{inputenc}
  10. \usepackage[T1]{fontenc}
  11. \usepackage{color,colortbl}
  12. \usepackage[most]{tcolorbox}
  13. \usepackage{varwidth}
  14. \usepackage{makeidx}
  15. \usepackage{empheq}
  16. \usepackage{adjustbox}
  17. \usepackage{pstricks}
  18. \usetikzlibrary{matrix}
  19. \usepackage{tkz-euclide}
  20. \usetkzobj[all]
  21. \usepackage{xlop}
  22. \usepackage{tcolorbox}
  23. \usepackage{pgfplots}
  24. \usepackage[makeroom]{cancel}
  25. \usepackage{pgf-pie}
  26. \usepackage{bchart}
  27. \usepackage{pifont}
  28. \let\checkmark\undefined
  29. \usepackage{dingbat}
  30. \usepackage{keystroke}
  31. \usepackage{booktabs}
  32. \usepackage{xcolor,multirow}
  33. \usepackage{beamerthemesplit}
  34. \usepackage{tikz,tcolorbox}
  35. \usepackage[tikz]{bclogo}
  36. \usetikzlibrary{calc,fadings,mindmap,trees,shadows,arrows,shapes,shapes.callouts,ocgx} %\usetikzlibrary{arrows,shapes}
  37.  
  38. \usepackage{tikzpeople}
  39. \usepackage{clock,colortbl}
  40. \usepackage{color}
  41. \usepackage{graphicx}
  42. %\usepackage{multirow}
  43. \usetikzlibrary{shadings}
  44. \usepackage{marvosym}
  45. \usepackage{wasysym}
  46. \usepackage{fancybox}
  47. \usepackage{hyperref}
  48. \usepackage{lmodern}
  49. \usepackage{arabtex}
  50. \usepackage{engrec}
  51. \usepackage{C:/arabtex/arab311/tex/latex/arabtex/arabtex}
  52. \usepackage{C:/arabtex/apatch}
  53. \usepackage{C:/arabtex/alocal}
  54. \usepackage[francais]{babel}
  55.  
  56. \setcounter{secnumdepth}{3}
  57. \setcounter{tocdepth}{1}
  58.  
  59. %%%%%%%%%%%%%%_____LES MAKEATLETTER_____%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  60. \makeatletter
  61. \setbeamertemplate{footline}
  62. {
  63. \leavevmode%
  64. \hbox{%
  65. \begin{beamercolorbox}[wd=.18\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}% wd pour la taille de zone
  66. \usebeamerfont{author in head/foot}\insertauthor
  67. \end{beamercolorbox}%
  68. \begin{beamercolorbox}[wd=.52\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
  69. \usebeamerfont{title in head/foot}\insertshorttitle%\inserttitle%
  70. \end{beamercolorbox}%
  71. \begin{beamercolorbox}[wd=.22\paperwidth,ht=2.25ex,dp=1ex,center]{date in head/foot}%
  72. \usebeamerfont{date in head/foot}\insertinstitute{},~\insertshortdate{}%\hspace*{2em}
  73. \end{beamercolorbox}
  74. \begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,center]{institute in head/foot}%
  75. \usebeamerfont{title in head/foot}
  76. \insertframenumber{}/\inserttotalframenumber\hspace*{2ex}
  77. \end{beamercolorbox}
  78. }%
  79. \vskip0pt%
  80. }
  81. \makeatother
  82. %%%%%%%%%%%%%%_____END MAKEATLETTER_____%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  83.  
  84. \title[La Correction Orthographique des Textes Arabes]{\textcolor[rgb]{0.0, 0.13, 0.28}{La Correction Orthographique des Textes Arabes : Contribution à la Résolution d'Ordonnancement et de l'Insuffisance des Lexiques}}
  85. %\subtitle{La Correction Orthographique des Textes Arabes}
  86. \author[Gueddah Hicham]{Gueddah Hicham}
  87. \institute{ENSIAS}
  88. \date{\today}
  89. \titlegraphic{\vspace{8cm}}
  90. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  91. \usetikzlibrary{mindmap,shadows}
  92. % Information boxes
  93. \newcommand*{\info}[4][16.3]{%
  94. \node[annotation, #3, scale=0.55, text width = #1em, %scale=0.65
  95. inner sep = 2mm ] at (#2) {%
  96. \list{$\bullet$}{\topsep=0pt\itemsep=0pt\parsep=0pt
  97. \parskip=0pt\labelwidth=8pt\leftmargin=8pt
  98. \itemindent=0pt\labelsep=2pt}%
  99. #4
  100. \endlist
  101. };
  102. }
  103. %************************************** TEXTE BUBBLE **************************************************************************
  104. \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture,baseline=0.5ex] \node (#1) {};}
  105.  
  106. % \explainword: #1= identifier to mark the word, #2 text
  107. \NewDocumentCommand{\explainword}{r[] m}{
  108. \switchocg{#1}{#2}\tikzmark{#1}
  109. }
  110.  
  111. \tikzset{my callout style/.style={
  112. draw,rectangle callout,anchor=pointer,callout relative pointer={(230:1cm)},
  113. rounded corners=2pt,align=left,text width=4.5cm,fill=white%cyan!20,
  114. }
  115. }
  116.  
  117. % \mycallout: #1 opacity style, #2 pointer base position, #3= text
  118. \NewDocumentCommand{\mycallout}{O{opacity=0.8,text opacity=1} m m}{%
  119. \begin{tikzpicture}[remember picture, overlay]
  120. \begin{scope}[ocg={ref=#2,status=invisible,name={#3}}]
  121. \node[my callout style,#1]at (#2) {#3};
  122. \end{scope}
  123. \end{tikzpicture}
  124. }
  125. %*****************************************************************************************************************
  126. \setbeamercolor{titre}{bg=red,fg=white}
  127. \setbeamercolor{texte}{bg=red!10,fg=black}
  128. \beamerboxesdeclarecolorscheme{blocbleu}{blue}{yellow}
  129. %%%%**************************************** REDFINING BLOCK *****************************************************
  130. \definecolor{myblue}{rgb}{0.15,0.15,0.53}
  131. \definecolor{myred}{rgb}{0.89,0.20,0.45}
  132. \makeatletter
  133. \newtcbox{\titlebox}{
  134. enhanced,
  135. overlay={
  136. \draw[myblue,fill=myblue](frame.south east)--+(0,.2)to[bend right]+(.2,-0)--cycle;},
  137. colback=myblue,
  138. top=-1pt,bottom=-2pt,left=2pt,right=2pt,
  139. boxrule=1pt,
  140. colframe=myblue,
  141. sharp corners=south,
  142. colupper=white,
  143. fontupper=\bfseries
  144. }
  145. \newtcolorbox{myblock}[1][]{
  146. enhanced,
  147. left=2pt,
  148. right=2pt,
  149. %colframe=myblue,
  150. %colframe=red!50!white,
  151. colframe=blue!75!black,
  152. boxrule=1pt,
  153. colback=blue!10,
  154. overlay={
  155. \def\myblock@tempa{#1}
  156. \ifx\myblock@tempa\@empty
  157. \else
  158. \draw[myblue,fill=myblue]($(frame.north west)+(.2pt,-.2pt)$)--+(.1,0)to[bend right]+(-0,-.1)--cycle;
  159. \node [
  160. anchor=south west,
  161. inner sep=0pt,
  162. outer sep=0pt
  163. ]at(frame.north west){\titlebox{#1}};
  164. \fi
  165. },
  166. }
  167. \makeatother
  168. %%%%%*************************************************************************************************************
  169. \newtcolorbox{myblock2}[1][]{
  170. enhanced,
  171. width=\textwidth+5pt,
  172. enlarge left by=-3pt,
  173. colframe=block body.bg,
  174. colback=blue!10,
  175. %colframe=myblue,
  176. boxrule=1pt,
  177. bottom=0pt,
  178. top=-2pt,
  179. left=0pt,
  180. right=0pt,
  181. toptitle=-1pt,
  182. bottomtitle=-1pt,
  183. fonttitle=\normalfont,
  184. adjusted title=#1,
  185. interior titled code={
  186. \shade[left color=red!80,right color=orange!70,middle color=lime]
  187. (title.south west) --
  188. (title.south east) {[rounded corners] --
  189. (title.north east) --
  190. (title.north west)} --
  191. (title.south west);
  192. }
  193. }
  194. %%%%**************************************** END REDFINING BLOCK *************************************************
  195. \usepackage{siunitx}
  196. \sisetup{
  197. output-decimal-marker={,},
  198. group-separator={\,},
  199. }
  200. \def\ScanPercentage#1\afternumber{\SI{#1}{\percent}}
  201.  
  202. %%%%%%%%%%%*************************** MD FRAMED*******************************************************************
  203. \mdfdefinestyle{mystyle}{%
  204. linecolor=green!40!black,outerlinewidth=0.2pt,%
  205. %frametitlerule=true,frametitlefont=\rmfamily\bfseries\color{white},% \normalfont
  206. frametitlerule=true,frametitlefont=\normalfont\bfseries\color{white},
  207. frametitlerulewidth=1pt,frametitlerulecolor=green!40!black,%
  208. frametitlebackgroundcolor=green!40!black,
  209. backgroundcolor=green!5,
  210. %backgroundcolor=lime!5,%backgroundcolor=purple!5,
  211. innertopmargin=\topskip,
  212. roundcorner=5pt
  213. }
  214. \newmdenv[style=mystyle]{exe}
  215. \newenvironment{exemple}[1]
  216. {\begin{exe}[frametitle=#1]}
  217. {\end{exe}}
  218. %%%%%%%%%%%%%%%%%%% ALERT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  219. \setbeamertemplate{itemize subitem}[triangle]
  220. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  221. %%% ENCADREMENT EQUATION
  222.  
  223. \newcommand*\eqbox[1]{\definecolor{shadowcolor}{RGB}{0, 0, 102}\setlength\shadowsize{2pt}\shadowbox*{#1}}
  224.  
  225. \newcommand{\EqBox}[2][.8]{%
  226. \definecolor{shadowcolor}{RGB}{0, 0, 102}
  227. \setlength\shadowsize{2pt}
  228. \begin{equation}
  229. \shadowbox*{%
  230. \begin{minipage}{#1\linewidth}
  231. \[#2\]
  232. \end{minipage}
  233. }
  234. \end{equation}
  235. }
  236. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  237.  
  238. \usetikzlibrary{fit,shapes.misc}
  239. \newcommand\marktopleft[1]{%
  240. \tikz[overlay,remember picture]
  241. \node (marker-#1-a) at (0,1.5ex) {};%
  242. }
  243. \newcommand\markbottomright[1]{%
  244. \tikz[overlay,remember picture]
  245. \node (marker-#1-b) at (0,0) {};%
  246. \tikz[overlay,remember picture,thick,dashed,inner sep=3pt]
  247. \node[draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};%
  248. }
  249. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  250.  
  251. \begin{document}
  252. \begingroup
  253. \setbeamertemplate{headline}{}
  254. \begin{frame}
  255. \tikz[remember picture,overlay]
  256. \node[anchor=north east,yshift=2pt] at (current page.north east)
  257. {\includegraphics[height=1.6cm,width=2.5cm]{C:/logoUM5eng.png} \hspace*{8.2cm}~\includegraphics[height=1.6cm,width=1.8cm]{C:/logoENSIAS.png}};
  258. \titlepage
  259. \fbox{
  260. \begin{tabular}{llll}
  261. $Mr.$ & \textsc{.............................} & Professeur, ............, & ( Président ) \\ %{xxxxxxxxxxxxxxxx}
  262. & &Université de .....................................&\\
  263. $Mr.$ & \textsc{.............................} & Professeur, ............, & ( Directeur de thèse ) \\
  264. & &Université de .....................................&\\
  265. $Mr.$ & \textsc{............................} & Professeur, ............, & ( Rapporteur ) \\
  266. & &Université de .....................................&\\
  267. $Mr.$ & \textsc{.............................} & Professeur, ............, & ( Rapporteur ) \\
  268. & &Université de .....................................&\\
  269. $Mr.$ & \textsc{.............................} & Professeur, ............, & ( Rapporteur ) \\
  270. & &Université de .....................................&\\
  271. $Mr.$ & \textsc{.............................} & Professeur, ............, &( Examinateur ) \\
  272. & &Université de .....................................&\\
  273. \end{tabular}
  274. }
  275. \end{frame}
  276. \endgroup
Last edited by cgnieder on Wed Mar 22, 2017 10:34 am, edited 1 time in total.
Reason: added code markup


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 3 guests