Graphics, Figures & TablesProblem with table location when margins has been modified

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
etp94
Posts: 16
Joined: Sat Sep 03, 2016 11:55 pm

Problem with table location when margins has been modified

Post by etp94 »

Hi! I've been using this margin configuration (It suppose to set 1 inch margins):

Code: Select all

\addtolength{\oddsidemargin}{-.875in}
\addtolength{\evensidemargin}{-.875in}
\addtolength{\textwidth}{1.75in}

\addtolength{\topmargin}{-.875in}
\addtolength{\textheight}{1.75in}
The problem is that when I use tables, the output does not center any table although I'm using \centering.

For example, I've this main file which includes File 1 and File 2 (It does not matter what it says just the output file when compiled):

Code: Select all

%Main file

\documentclass[12pt,openany]{report}
\usepackage[document]{ragged2e}
\usepackage{parskip} %Enable white horizontal line between paragraphs
\setlength\RaggedRightParindent{0.5in} %Half inc indent
\usepackage{geometry} %Modify geometry properties when required
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[spanish,activeacute,es-lcroman,es-tabla]{babel}
\usepackage{mathtools}
\usepackage[latin1]{inputenc}
\usepackage{dcolumn}
\usepackage{float}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{epstopdf}
\usepackage{subfig}
\usepackage{color}
\usepackage{pifont}
\usepackage{apacite} % apa style cites
\usepackage{authblk}
\usepackage{rotating}

% 1 inch margin 
	\spanishdecimal{.}
	
	\addtolength{\oddsidemargin}{-.875in}
	\addtolength{\evensidemargin}{-.875in}
	\addtolength{\textwidth}{1.75in}

	\addtolength{\topmargin}{-.875in}
	\addtolength{\textheight}{1.75in}

\title{}
\author{}
\date{}

\bibliographystyle{apacite}

\begin{document}

\input{File1.tex}
		\clearpage\null\newpage
%\input{File2.tex}
%		\clearpage\null\newpage

\end{document}
This is file 1:

Code: Select all

%File 1

\chapter{Metodología}

\section{Diseño técnico y metodológico para la obtención y análisis de la información}


\subsection{Primer método de entropía}

\begin{equation}
00001100110111010111101000111001101110100100100111010001101100110111100010010010
\nonumber
\end{equation}

De la secuencia obtenida se calcula la entropía según la función para distintas longitudes $L$ de palabras de bits, por ejemplo para un $L = 2$ se calcula la entropía para $k_{00}, k_{01}, k_{10}$ y $k_{11}$ donde todos los $k$ posibles valores se encuentran entre los 80 bits mostrados, y para un $L = 5$ se calcula la entropía para $k_{00001}, k_{10011}, k_{01110}, k_{10111}, ..., k_{00100}, k_{10010}$, donde no todos los $k = 32$ valores posibles se encuentran dentro de los 80 bits mostrados, en las tablas \ref{4t2}, \ref{4t3}, \ref{4t4} y \ref{4t5} se presentan los resultados de entropía para los cuatro mapas propuestos usando longitudes $L$ que van de 1 bit hasta 10 bits. Los parámetros que se usaron para obtener las salidas evaluadas fueron seleccionados partiendo de los diagramas de bifurcación utilizando 10 valores dentro las regiones caóticas del respectivo mapa, cada una de las secuencias de salida provee 1 millón de bits.

\subsection{Segundo método de entropía}

En las tablas \ref{4t6}, \ref{4t7}, \ref{4t8} y \ref{4t9} se observan los resultados de entropía y la desviación estándar de cada valor, es decir el máximo porcentaje de error entre el valor medio y los valores de entropía para cada muestra, se debe hacer notar el parecido entre los resultados de entropía del primer método para $L = 10$ y los resultados de entropía del segundo método. Los resultados obtenidos en los dos métodos demuestran que los mejores resultados de entropía se obtienen para los valores superiores de cada parámetro dentro de las regiones caóticas observadas en los diagramas de bifurcación. La entropía de Shannon provee una medida de incertidumbre de la secuencia evaluada, esta medida es útil en el diseño de generadores de números aleatorios debido a que una característica del generador de números aleatorios ideal es la imparcialidad de símbolos (\textit{unbiasing} en inglés) lo cual significa que cada símbolo proveído por el generador tiene la misma probabilidad de ser la próxima salida del dispositivo. 

\newgeometry{left=0cm,bottom=3cm}

%Entropía de shift de bernoulli 
    \begin{table} [p]
\begin{minipage}[c][\textheight][c]{\textwidth}% adjust vertical spacing to fill page
\centering
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
      
        $\beta$ & L = 1 	 & L = 2 		& L = 3 	 & L = 4 		& L = 5 	 & L = 6 		& L = 7 	 & L = 8 		& L = 9 	 & L = 10 \\ \hline
        1.50 		& 1.000000 & 0.898050 & 0.827355 & 0.785424 & 0.747959 & 0.722424 & 0.704365 & 0.690229 & 0.679510 & 0.670651 \\ \hline
				1.55 		& 1.000000 & 0.916890 & 0.842043 & 0.801419 & 0.773649 & 0.755601 & 0.738383 & 0.725952 & 0.715827 & 0.707855 \\ \hline
				1.60 		& 1.000000 & 0.920117 & 0.844886 & 0.806559 & 0.783581 & 0.767813 & 0.756426 & 0.747022 & 0.739922 & 0.734052 \\ \hline
        1.65 		& 1.000000 & 0.947536 & 0.896689 & 0.870941 & 0.847927 & 0.832831 & 0.819706 & 0.808284 & 0.798948 & 0.791273 \\ \hline
				1.70 		& 1.000000 & 0.964277 & 0.927483 & 0.905377 & 0.880436 & 0.864285 & 0.851463 & 0.841719 & 0.833544 & 0.826751 \\ \hline
				1.75 		& 1.000000 & 0.974442 & 0.946335 & 0.925901 & 0.908685 & 0.894906 & 0.882661 & 0.873798 & 0.866624 & 0.860708 \\ \hline
        1.80 		& 1.000000 & 0.974673 & 0.954436 & 0.934637 & 0.921529 & 0.911290 & 0.903309 & 0.896809 & 0.891597 & 0.887328 \\ \hline
				1.85 		& 1.000000 & 0.983592 & 0.970302 & 0.954652 & 0.944855 & 0.937378 & 0.930645 & 0.925633 & 0.921380 & 0.917790 \\ \hline
				1.90 		& 1.000000 & 0.991403 & 0.983715 & 0.976293 & 0.969272 & 0.964119 & 0.959355 & 0.955404 & 0.951983 & 0.949164 \\ \hline
        1.95 		& 1.000000 & 0.997152 & 0.994191 & 0.991385 & 0.988121 & 0.985305 & 0.982719 & 0.980670 & 0.978536 & 0.976881 \\ \hline
    \end{tabular}
            }
  \caption{Primer método de entrop'ia de Shannon, mapa de corrimiento de Bernoulli}
  \label{4t2}
\vfil
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
        
        \mbox{$\mu$} & L = 1 		& L = 2 	 & L = 3 		& L = 4 	 & L = 5 		& L = 6 	 & L = 7 		& L = 8 	 & L = 9 & L = 10 \\ \hline
						1.10 		 & 0.999993 & 0.719640 & 0.623910 & 0.574029 & 0.543667 & 0.520606 & 0.502112 & 0.487768 & 0.475953 & 0.466137 \\ 
						1.19 		 & 0.999998 & 0.817096 & 0.748491 & 0.707740 & 0.677614 & 0.651696 & 0.635060 & 0.621131 & 0.611029 & 0.603097 \\ 
						1.28 		 & 0.999999 & 0.879155 & 0.823869 & 0.779928 & 0.748377 & 0.724584 & 0.706436 & 0.693772 & 0.683414 & 0.674838 \\ 
						1.37 		 & 0.999997 & 0.920656 & 0.869269 & 0.842761 & 0.824498 & 0.809629 & 0.797086 & 0.786884 & 0.779664 & 0.773294 \\ 
						1.46 		 & 1.000000 & 0.949674 & 0.896562 & 0.860753 & 0.835422 & 0.817890 & 0.804911 & 0.795185 & 0.787777 & 0.781269 \\ 
						1.55 		 & 0.999994 & 0.969246 & 0.909232 & 0.876628 & 0.855609 & 0.841122 & 0.830534 & 0.822020 & 0.814979 & 0.810293 \\ 
						1.64 		 & 1.000000 & 0.982636 & 0.931559 & 0.902826 & 0.884917 & 0.871120 & 0.860225 & 0.852203 & 0.845970 & 0.840969 \\ 
						1.73 		 & 1.000000 & 0.991316 & 0.970960 & 0.944120 & 0.928266 & 0.917097 & 0.909151 & 0.902637 & 0.897747 & 0.893963 \\ 
						1.82 		 & 0.999999 & 0.996628 & 0.989262 & 0.978702 & 0.966802 & 0.958673 & 0.950879 & 0.945109 & 0.940482 & 0.936640 \\ 
						1.90 		 & 1.000000 & 0.999062 & 0.997282 & 0.994353 & 0.989116 & 0.983875 & 0.979471 & 0.975790 & 0.972684 & 0.969625 \\ \hline
    \end{tabular}
            }
 \caption{Primer método de entrop'ia de Shannon, mapa casa de campa\~na}
  \label{4t3}
\vfil
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
        
        $m$  & L = 1 		& L = 2 	 & L = 3 		& L = 4		 & L = 5 		& L = 6 	 & L = 7 		& L = 8 	 & L = 9 		& L = 10 \\ \hline
        2.10 & 1.000000 & 0.621975 & 0.493579 & 0.430285 & 0.390371 & 0.364907 & 0.345268 & 0.331640 & 0.320044 & 0.311410 \\ 
				2.20 & 0.999993 & 0.692496 & 0.587002 & 0.531991 & 0.498349 & 0.476484 & 0.459837 & 0.448248 & 0.439730 & 0.431709 \\ 
				2.30 & 0.999985 & 0.745348 & 0.654278 & 0.603466 & 0.572939 & 0.552549 & 0.538224 & 0.527078 & 0.518729 & 0.511684 \\ 
        2.40 & 0.999997 & 0.789124 & 0.708993 & 0.667615 & 0.642868 & 0.626497 & 0.614525 & 0.605284 & 0.598452 & 0.592076 \\ 
				2.50 & 1.000000 & 0.841750 & 0.769556 & 0.731111 & 0.707382 & 0.692981 & 0.681534 & 0.673777 & 0.667076 & 0.661527 \\ 
				2.60 & 0.999996 & 0.853234 & 0.782700 & 0.746404 & 0.724822 & 0.709969 & 0.699942 & 0.691703 & 0.685935 & 0.680688 \\ 
        2.70 & 1.000000 & 0.874111 & 0.802911 & 0.768423 & 0.746997 & 0.732891 & 0.722929 & 0.715642 & 0.709185 & 0.704861 \\ 
				2.80 & 0.999998 & 0.894217 & 0.849986 & 0.826559 & 0.810183 & 0.799699 & 0.792216 & 0.786453 & 0.781733 & 0.777744 \\ 
				2.90 & 0.999995 & 0.928070 & 0.899806 & 0.881468 & 0.869825 & 0.862464 & 0.857299 & 0.853049 & 0.850160 & 0.847187 \\ 
        3.00 & 0.999990 & 0.958528 & 0.945137 & 0.938107 & 0.933917 & 0.931226 & 0.929482 & 0.927947 & 0.926604 & 0.925014 \\ \hline
    \end{tabular}
            }
 \caption{Primer método de entrop'ia de Shannon, mapa zigzag}
  \label{4t4}
\vfil
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
      
        $r$  & L = 1 		& L = 2 	 & L = 3 	  & L = 4 	 & L = 5 		& L = 6 	 & L = 7 	  & L = 8 	 & L = 9 	  & L = 10 \\ \hline
        3.30 & 0.998147 & 0.887795 & 0.821738 & 0.776608 & 0.747807 & 0.726720 & 0.708001 & 0.691625 & 0.678410 & 0.667889 \\ 
				3.37 & 0.995705 & 0.906133 & 0.830965 & 0.779012 & 0.747166 & 0.725658 & 0.709791 & 0.698681 & 0.688665 & 0.680540 \\ 
				3.44 & 0.999987 & 0.954097 & 0.887383 & 0.848970 & 0.818482 & 0.797880 & 0.782304 & 0.770114 & 0.760180 & 0.751224 \\ 
        3.51 & 0.998877 & 0.947287 & 0.883510 & 0.851011 & 0.830670 & 0.814424 & 0.802715 & 0.793974 & 0.786500 & 0.780619 \\ 
				3.58 & 0.983685 & 0.950772 & 0.920692 & 0.892638 & 0.865254 & 0.839776 & 0.818040 & 0.797837 & 0.781443 & 0.767354 \\ 
				3.65 & 0.970236 & 0.937791 & 0.899577 & 0.864822 & 0.837346 & 0.812417 & 0.794649 & 0.781066 & 0.770329 & 0.762424 \\ 
        3.72 & 0.972943 & 0.928751 & 0.901364 & 0.871162 & 0.847469 & 0.831195 & 0.819384 & 0.810785 & 0.803260 & 0.797611 \\ 
				3.79 & 0.962974 & 0.946805 & 0.933039 & 0.917082 & 0.902282 & 0.888114 & 0.874574 & 0.861700 & 0.850536 & 0.840151 \\ 
				3.86 & 0.956858 & 0.932936 & 0.920616 & 0.909508 & 0.895300 & 0.882612 & 0.873172 & 0.865753 & 0.859580 & 0.854040 \\ 
        3.93 & 0.939195 & 0.925036 & 0.917512 & 0.911482 & 0.904774 & 0.896499 & 0.889008 & 0.882996 & 0.877870 & 0.873361 \\ \hline
    \end{tabular}
            }
  \caption{Primer método de entrop'ia de Shannon, mapa log'istico}
  \label{4t5}
  \end{minipage}
    \end{table}

\restoregeometry
    \clearpage
	
\newgeometry{left=0cm,bottom=3cm}

\begin{table} [p]
\begin{minipage}[c][\textheight][c]{\textwidth}% adjust vertical spacing to fill page
\centering

\vfil
%Entropía de shift de bernoulli	(método 2)
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
	$\beta$ & $H$ & $\sigma$ \\ \hline
		1.50 & 0.606389 & 0.00069977  \\ 
    1.55 & 0.651168 & 0.00082930  \\ 
    1.60 & 0.696219 & 0.00158795  \\ 
		1.65 & 0.751238 & 0.00197234  \\ 
    1.70 & 0.788243 & 0.00179281  \\ 
    1.75 & 0.830221 & 0.00092369  \\ 
		1.80 & 0.873407 & 0.00230079  \\ 
    1.85 & 0.909774 & 0.00138893  \\ 
    1.90 & 0.950568 & 0.00126981  \\ 
		1.95 & 0.982857 & 0.00127633  \\ \hline
    \end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa de corrimiento de Bernoulli}
  \label{4t6}
	
	\vfil
	
	%Entropía del mapa casa de campaña (método 2)
	
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
		$\mu$ & $H$ & $\sigma$ \\ \hline
		1.10 & 0.387835 & 0.00820283 \\ 
    1.19 & 0.539613 & 0.00869343 \\ 
    1.28 & 0.610310 & 0.00589504 \\ 
		1.37 & 0.733478 & 0.00718698 \\ 
    1.46 & 0.738141 & 0.00350300 \\ 
    1.55 & 0.775286 & 0.00433283 \\ 
		1.64 & 0.811262 & 0.00415047 \\ 
    1.73 & 0.870925 & 0.00505230 \\ 
    1.82 & 0.920335 & 0.00488650 \\ 
		1.90 & 0.966447 & 0.00245861 \\ \hline  
		\end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa casa de campaña}
  \label{4t7}
	
	\vfil
	
	%Entropía del mapa Zigzag (método 2)
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
		$m$ & $H$ & $\sigma$ \\ \hline
		2.10 & 0.241759 & 0.00710442\\ 
    2.20 & 0.372016 & 0.01019954\\ 
    2.30 & 0.458077 & 0.00806895\\ 
		2.40 & 0.550876 & 0.00727467\\ 
    2.50 & 0.624866 & 0.00741315\\ 
    2.60 & 0.645316 & 0.00471859\\ 
		2.70 & 0.666707 & 0.00453490\\ 
    2.80 & 0.757178 & 0.00537279\\ 
    2.90 & 0.833899 & 0.00671353\\ 
		3.00 & 0.918537 & 0.00613830\\ \hline
    \end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa zigzag}
  \label{4t8}
	
	\vfil

	%Entropía del mapa logístico
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
		$r$ & $H$ & $\sigma$ \\ \hline
		3.30 & 0.588780 & 0.00894006 \\ 
    3.37 & 0.612301 & 0.00995044 \\ 
    3.44 & 0.701590 & 0.00934775 \\ 
		3.51 & 0.742740 & 0.00799296 \\ 
    3.58 & 0.671500 & 0.01125182 \\ 
    3.65 & 0.697080 & 0.01030846 \\ 
		3.72 & 0.756629 & 0.00852485 \\ 
    3.79 & 0.774875 & 0.01364410 \\ 
    3.86 & 0.831459 & 0.00985420 \\ 
		3.93 & 0.853865 & 0.00756721 \\ \hline
    \end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa logístico}
  \label{4t9}
	
	\vfil
	
	\end{minipage}
    \end{table}
	
\restoregeometry

\clearpage
File 1 uses geometry package which is included in the main file, with \newgeometry{left=0cm,bottom=3cm} and \restoregeometry commands in order to modify the table location, the problem is that it also change the page numbering location, which must be the same position as it is in the other pages (compare page numbering from output page 1 and output page 2)

This is file 2:

Code: Select all

\subsection{Primer método de entropía}

\begin{equation}
00001100110111010111101000111001101110100100100111010001101100110111100010010010
\nonumber
\end{equation}

De la secuencia obtenida se calcula la entropía según la función para distintas longitudes $L$ de palabras de bits, por ejemplo para un $L = 2$ se calcula la entropía para $k_{00}, k_{01}, k_{10}$ y $k_{11}$ donde todos los $k$ posibles valores se encuentran entre los 80 bits mostrados, y para un $L = 5$ se calcula la entropía para $k_{00001}, k_{10011}, k_{01110}, k_{10111}, ..., k_{00100}, k_{10010}$, donde no todos los $k = 32$ valores posibles se encuentran dentro de los 80 bits mostrados, en las tablas \ref{4t2}, \ref{4t3}, \ref{4t4} y \ref{4t5} se presentan los resultados de entropía para los cuatro mapas propuestos usando longitudes $L$ que van de 1 bit hasta 10 bits. Los parámetros que se usaron para obtener las salidas evaluadas fueron seleccionados partiendo de los diagramas de bifurcación utilizando 10 valores dentro las regiones caóticas del respectivo mapa, cada una de las secuencias de salida provee 1 millón de bits.

\subsection{Segundo método de entropía}

En las tablas \ref{4t6}, \ref{4t7}, \ref{4t8} y \ref{4t9} se observan los resultados de entropía y la desviación estándar de cada valor, es decir el máximo porcentaje de error entre el valor medio y los valores de entropía para cada muestra, se debe hacer notar el parecido entre los resultados de entropía del primer método para $L = 10$ y los resultados de entropía del segundo método. Los resultados obtenidos en los dos métodos demuestran que los mejores resultados de entropía se obtienen para los valores superiores de cada parámetro dentro de las regiones caóticas observadas en los diagramas de bifurcación. La entropía de Shannon provee una medida de incertidumbre de la secuencia evaluada, esta medida es útil en el diseño de generadores de números aleatorios debido a que una característica del generador de números aleatorios ideal es la imparcialidad de símbolos (\textit{unbiasing} en inglés) lo cual significa que cada símbolo proveído por el generador tiene la misma probabilidad de ser la próxima salida del dispositivo. 

%\newgeometry{left=0cm,bottom=3cm}

%Entropía de shift de bernoulli 
    \begin{table} [p]
\begin{minipage}[c][\textheight][c]{\textwidth}% adjust vertical spacing to fill page
\centering
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
      
        $\beta$ & L = 1 	 & L = 2 		& L = 3 	 & L = 4 		& L = 5 	 & L = 6 		& L = 7 	 & L = 8 		& L = 9 	 & L = 10 \\ \hline
        1.50 		& 1.000000 & 0.898050 & 0.827355 & 0.785424 & 0.747959 & 0.722424 & 0.704365 & 0.690229 & 0.679510 & 0.670651 \\ \hline
				1.55 		& 1.000000 & 0.916890 & 0.842043 & 0.801419 & 0.773649 & 0.755601 & 0.738383 & 0.725952 & 0.715827 & 0.707855 \\ \hline
				1.60 		& 1.000000 & 0.920117 & 0.844886 & 0.806559 & 0.783581 & 0.767813 & 0.756426 & 0.747022 & 0.739922 & 0.734052 \\ \hline
        1.65 		& 1.000000 & 0.947536 & 0.896689 & 0.870941 & 0.847927 & 0.832831 & 0.819706 & 0.808284 & 0.798948 & 0.791273 \\ \hline
				1.70 		& 1.000000 & 0.964277 & 0.927483 & 0.905377 & 0.880436 & 0.864285 & 0.851463 & 0.841719 & 0.833544 & 0.826751 \\ \hline
				1.75 		& 1.000000 & 0.974442 & 0.946335 & 0.925901 & 0.908685 & 0.894906 & 0.882661 & 0.873798 & 0.866624 & 0.860708 \\ \hline
        1.80 		& 1.000000 & 0.974673 & 0.954436 & 0.934637 & 0.921529 & 0.911290 & 0.903309 & 0.896809 & 0.891597 & 0.887328 \\ \hline
				1.85 		& 1.000000 & 0.983592 & 0.970302 & 0.954652 & 0.944855 & 0.937378 & 0.930645 & 0.925633 & 0.921380 & 0.917790 \\ \hline
				1.90 		& 1.000000 & 0.991403 & 0.983715 & 0.976293 & 0.969272 & 0.964119 & 0.959355 & 0.955404 & 0.951983 & 0.949164 \\ \hline
        1.95 		& 1.000000 & 0.997152 & 0.994191 & 0.991385 & 0.988121 & 0.985305 & 0.982719 & 0.980670 & 0.978536 & 0.976881 \\ \hline
    \end{tabular}
            }
  \caption{Primer método de entrop'ia de Shannon, mapa de corrimiento de Bernoulli}
  \label{4t2}
\vfil
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
        
        \mbox{$\mu$} & L = 1 		& L = 2 	 & L = 3 		& L = 4 	 & L = 5 		& L = 6 	 & L = 7 		& L = 8 	 & L = 9 & L = 10 \\ \hline
						1.10 		 & 0.999993 & 0.719640 & 0.623910 & 0.574029 & 0.543667 & 0.520606 & 0.502112 & 0.487768 & 0.475953 & 0.466137 \\ 
						1.19 		 & 0.999998 & 0.817096 & 0.748491 & 0.707740 & 0.677614 & 0.651696 & 0.635060 & 0.621131 & 0.611029 & 0.603097 \\ 
						1.28 		 & 0.999999 & 0.879155 & 0.823869 & 0.779928 & 0.748377 & 0.724584 & 0.706436 & 0.693772 & 0.683414 & 0.674838 \\ 
						1.37 		 & 0.999997 & 0.920656 & 0.869269 & 0.842761 & 0.824498 & 0.809629 & 0.797086 & 0.786884 & 0.779664 & 0.773294 \\ 
						1.46 		 & 1.000000 & 0.949674 & 0.896562 & 0.860753 & 0.835422 & 0.817890 & 0.804911 & 0.795185 & 0.787777 & 0.781269 \\ 
						1.55 		 & 0.999994 & 0.969246 & 0.909232 & 0.876628 & 0.855609 & 0.841122 & 0.830534 & 0.822020 & 0.814979 & 0.810293 \\ 
						1.64 		 & 1.000000 & 0.982636 & 0.931559 & 0.902826 & 0.884917 & 0.871120 & 0.860225 & 0.852203 & 0.845970 & 0.840969 \\ 
						1.73 		 & 1.000000 & 0.991316 & 0.970960 & 0.944120 & 0.928266 & 0.917097 & 0.909151 & 0.902637 & 0.897747 & 0.893963 \\ 
						1.82 		 & 0.999999 & 0.996628 & 0.989262 & 0.978702 & 0.966802 & 0.958673 & 0.950879 & 0.945109 & 0.940482 & 0.936640 \\ 
						1.90 		 & 1.000000 & 0.999062 & 0.997282 & 0.994353 & 0.989116 & 0.983875 & 0.979471 & 0.975790 & 0.972684 & 0.969625 \\ \hline
    \end{tabular}
            }
 \caption{Primer método de entrop'ia de Shannon, mapa casa de campa\~na}
  \label{4t3}
\vfil
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
        
        $m$  & L = 1 		& L = 2 	 & L = 3 		& L = 4		 & L = 5 		& L = 6 	 & L = 7 		& L = 8 	 & L = 9 		& L = 10 \\ \hline
        2.10 & 1.000000 & 0.621975 & 0.493579 & 0.430285 & 0.390371 & 0.364907 & 0.345268 & 0.331640 & 0.320044 & 0.311410 \\ 
				2.20 & 0.999993 & 0.692496 & 0.587002 & 0.531991 & 0.498349 & 0.476484 & 0.459837 & 0.448248 & 0.439730 & 0.431709 \\ 
				2.30 & 0.999985 & 0.745348 & 0.654278 & 0.603466 & 0.572939 & 0.552549 & 0.538224 & 0.527078 & 0.518729 & 0.511684 \\ 
        2.40 & 0.999997 & 0.789124 & 0.708993 & 0.667615 & 0.642868 & 0.626497 & 0.614525 & 0.605284 & 0.598452 & 0.592076 \\ 
				2.50 & 1.000000 & 0.841750 & 0.769556 & 0.731111 & 0.707382 & 0.692981 & 0.681534 & 0.673777 & 0.667076 & 0.661527 \\ 
				2.60 & 0.999996 & 0.853234 & 0.782700 & 0.746404 & 0.724822 & 0.709969 & 0.699942 & 0.691703 & 0.685935 & 0.680688 \\ 
        2.70 & 1.000000 & 0.874111 & 0.802911 & 0.768423 & 0.746997 & 0.732891 & 0.722929 & 0.715642 & 0.709185 & 0.704861 \\ 
				2.80 & 0.999998 & 0.894217 & 0.849986 & 0.826559 & 0.810183 & 0.799699 & 0.792216 & 0.786453 & 0.781733 & 0.777744 \\ 
				2.90 & 0.999995 & 0.928070 & 0.899806 & 0.881468 & 0.869825 & 0.862464 & 0.857299 & 0.853049 & 0.850160 & 0.847187 \\ 
        3.00 & 0.999990 & 0.958528 & 0.945137 & 0.938107 & 0.933917 & 0.931226 & 0.929482 & 0.927947 & 0.926604 & 0.925014 \\ \hline
    \end{tabular}
            }
 \caption{Primer método de entrop'ia de Shannon, mapa zigzag}
  \label{4t4}
\vfil
    \resizebox{15cm}{!}{
        \begin{tabular}{  l  l  l  l  l  l  l  l  l  l  l p{2cm} }
      
        $r$  & L = 1 		& L = 2 	 & L = 3 	  & L = 4 	 & L = 5 		& L = 6 	 & L = 7 	  & L = 8 	 & L = 9 	  & L = 10 \\ \hline
        3.30 & 0.998147 & 0.887795 & 0.821738 & 0.776608 & 0.747807 & 0.726720 & 0.708001 & 0.691625 & 0.678410 & 0.667889 \\ 
				3.37 & 0.995705 & 0.906133 & 0.830965 & 0.779012 & 0.747166 & 0.725658 & 0.709791 & 0.698681 & 0.688665 & 0.680540 \\ 
				3.44 & 0.999987 & 0.954097 & 0.887383 & 0.848970 & 0.818482 & 0.797880 & 0.782304 & 0.770114 & 0.760180 & 0.751224 \\ 
        3.51 & 0.998877 & 0.947287 & 0.883510 & 0.851011 & 0.830670 & 0.814424 & 0.802715 & 0.793974 & 0.786500 & 0.780619 \\ 
				3.58 & 0.983685 & 0.950772 & 0.920692 & 0.892638 & 0.865254 & 0.839776 & 0.818040 & 0.797837 & 0.781443 & 0.767354 \\ 
				3.65 & 0.970236 & 0.937791 & 0.899577 & 0.864822 & 0.837346 & 0.812417 & 0.794649 & 0.781066 & 0.770329 & 0.762424 \\ 
        3.72 & 0.972943 & 0.928751 & 0.901364 & 0.871162 & 0.847469 & 0.831195 & 0.819384 & 0.810785 & 0.803260 & 0.797611 \\ 
				3.79 & 0.962974 & 0.946805 & 0.933039 & 0.917082 & 0.902282 & 0.888114 & 0.874574 & 0.861700 & 0.850536 & 0.840151 \\ 
				3.86 & 0.956858 & 0.932936 & 0.920616 & 0.909508 & 0.895300 & 0.882612 & 0.873172 & 0.865753 & 0.859580 & 0.854040 \\ 
        3.93 & 0.939195 & 0.925036 & 0.917512 & 0.911482 & 0.904774 & 0.896499 & 0.889008 & 0.882996 & 0.877870 & 0.873361 \\ \hline
    \end{tabular}
            }
  \caption{Primer método de entrop'ia de Shannon, mapa log'istico}
  \label{4t5}
  \end{minipage}
    \end{table}

%\restoregeometry
    \clearpage
	
%\newgeometry{left=0cm,bottom=3cm}

\begin{table} [p]
\begin{minipage}[c][\textheight][c]{\textwidth}% adjust vertical spacing to fill page
\centering

\vfil
%Entropía de shift de bernoulli	(método 2)
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
	$\beta$ & $H$ & $\sigma$ \\ \hline
		1.50 & 0.606389 & 0.00069977  \\ 
    1.55 & 0.651168 & 0.00082930  \\ 
    1.60 & 0.696219 & 0.00158795  \\ 
		1.65 & 0.751238 & 0.00197234  \\ 
    1.70 & 0.788243 & 0.00179281  \\ 
    1.75 & 0.830221 & 0.00092369  \\ 
		1.80 & 0.873407 & 0.00230079  \\ 
    1.85 & 0.909774 & 0.00138893  \\ 
    1.90 & 0.950568 & 0.00126981  \\ 
		1.95 & 0.982857 & 0.00127633  \\ \hline
    \end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa de corrimiento de Bernoulli}
  \label{4t6}
	
	\vfil
	
	%Entropía del mapa casa de campaña (método 2)
	
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
		$\mu$ & $H$ & $\sigma$ \\ \hline
		1.10 & 0.387835 & 0.00820283 \\ 
    1.19 & 0.539613 & 0.00869343 \\ 
    1.28 & 0.610310 & 0.00589504 \\ 
		1.37 & 0.733478 & 0.00718698 \\ 
    1.46 & 0.738141 & 0.00350300 \\ 
    1.55 & 0.775286 & 0.00433283 \\ 
		1.64 & 0.811262 & 0.00415047 \\ 
    1.73 & 0.870925 & 0.00505230 \\ 
    1.82 & 0.920335 & 0.00488650 \\ 
		1.90 & 0.966447 & 0.00245861 \\ \hline  
		\end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa casa de campaña}
  \label{4t7}
	
	\vfil
	
	%Entropía del mapa Zigzag (método 2)
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
		$m$ & $H$ & $\sigma$ \\ \hline
		2.10 & 0.241759 & 0.00710442\\ 
    2.20 & 0.372016 & 0.01019954\\ 
    2.30 & 0.458077 & 0.00806895\\ 
		2.40 & 0.550876 & 0.00727467\\ 
    2.50 & 0.624866 & 0.00741315\\ 
    2.60 & 0.645316 & 0.00471859\\ 
		2.70 & 0.666707 & 0.00453490\\ 
    2.80 & 0.757178 & 0.00537279\\ 
    2.90 & 0.833899 & 0.00671353\\ 
		3.00 & 0.918537 & 0.00613830\\ \hline
    \end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa zigzag}
  \label{4t8}
	
	\vfil

	%Entropía del mapa logístico
	\resizebox{5cm}{!}{
		\begin{tabular}{  l  l  l p{2cm} }
		
		$r$ & $H$ & $\sigma$ \\ \hline
		3.30 & 0.588780 & 0.00894006 \\ 
    3.37 & 0.612301 & 0.00995044 \\ 
    3.44 & 0.701590 & 0.00934775 \\ 
		3.51 & 0.742740 & 0.00799296 \\ 
    3.58 & 0.671500 & 0.01125182 \\ 
    3.65 & 0.697080 & 0.01030846 \\ 
		3.72 & 0.756629 & 0.00852485 \\ 
    3.79 & 0.774875 & 0.01364410 \\ 
    3.86 & 0.831459 & 0.00985420 \\ 
		3.93 & 0.853865 & 0.00756721 \\ \hline
    \end{tabular}
			}
  \caption{Segundo método de entropía de Shannon, mapa logístico}
  \label{4t9}
	
	\vfil
	
	\end{minipage}
    \end{table}
	
%\restoregeometry

\clearpage
Before compiling please change at the main file:

Code: Select all

\input{File1.tex}
		\clearpage\null\newpage
%\input{File2.tex}
%		\clearpage\null\newpage
to

Code: Select all

%\input{File1.tex}
%		\clearpage\null\newpage
\input{File2.tex}
		\clearpage\null\newpage
Thanks for reading! :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Problem with table location when margins has been modified

Post by cgnieder »

You really should look up what a Infominimal working example is. Your code isn't…
etp94 wrote:I've been using this margin configuration (It suppose to set 1 inch margins):

Code: Select all

\addtolength{\oddsidemargin}{-.875in}
\addtolength{\evensidemargin}{-.875in}
\addtolength{\textwidth}{1.75in}

\addtolength{\topmargin}{-.875in}
\addtolength{\textheight}{1.75in}
You shouldn't be setting margins like this. Add the showframe package to see what actually happens:

Code: Select all

\documentclass[12pt,openany]{report}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{geometry}

\addtolength{\oddsidemargin}{-.875in}% is now negative
\addtolength{\evensidemargin}{-.875in}% is now negative
\addtolength{\textwidth}{1.75in}
\addtolength{\topmargin}{-.875in}% is now even more negative
\addtolength{\textheight}{1.75in}

\usepackage{showframe,blindtext}

\begin{document}

\blinddocument

\end{document}
If you want 1in margins just use \usepackage[margin=1in]{geometry}:

Code: Select all

\documentclass[12pt,openany]{report}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[margin=1in]{geometry}

\usepackage{showframe,blindtext}

\begin{document}

\blinddocument

\end{document}
Regards
site moderator & package author
etp94
Posts: 16
Joined: Sat Sep 03, 2016 11:55 pm

Problem with table location when margins has been modified

Post by etp94 »

Thanks for the advice!
cgnieder wrote: If you want 1in margins just use \usepackage[margin=1in]{geometry}:
By using this code, it seems that \setlength\RaggedRightParindent{0.5in} command is moving margins, I want half inch indentation but is generating this problem. Is there a way to have both .5in indent and 1in margin?

Code: Select all

\documentclass[12pt,openany]{report}
\usepackage[document]{ragged2e}
\usepackage{parskip} %Enable white horizontal line between paragraphs
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage{color}
\usepackage{authblk}


\usepackage[margin=1in]{geometry} % 1 inch margin
\usepackage{showframe,blindtext} %Show how the frames are doing

\setlength\RaggedRightParindent{0.5in} %Half inc indent

\begin{document}

\chapter{Metodología}

\section{Diseno tecnico y metodologico para la obtencion y analisis de la informacion}


\subsection{Primer metodo de entropía}

\begin{equation}
00001100110111010111101000111001101110100100100111010001101100110111100010010010
\nonumber
\end{equation}

De la secuencia obtenida se calcula la entropia segun la funcion para distintas longitudes $L$ de palabras de bits, por ejemplo para un $L = 2$ se calcula la entropia para $k_{00}, k_{01}, k_{10}$ y $k_{11}$ donde todos los $k$ posibles valores se encuentran entre los 80 bits mostrados, y para un $L = 5$ se calcula la entropía para $k_{00001}, k_{10011}, k_{01110}, k_{10111}, ..., k_{00100}, k_{10010}$.


\begin{table} [p]
\centering
	\begin{tabular}{  l  l  l p{2cm} }
		
	$\beta$ & $H$ & $\sigma$ \\ \hline
		1.50 & 0.606389 & 0.00069977  \\ 
    1.55 & 0.651168 & 0.00082930  \\ 
    1.60 & 0.696219 & 0.00158795  \\ 
		1.65 & 0.751238 & 0.00197234  \\ 
    1.70 & 0.788243 & 0.00179281  \\ 
    1.75 & 0.830221 & 0.00092369  \\ 
		1.80 & 0.873407 & 0.00230079  \\ 
    1.85 & 0.909774 & 0.00138893  \\ 
    1.90 & 0.950568 & 0.00126981  \\ 
		1.95 & 0.982857 & 0.00127633  \\ \hline
    \end{tabular}
  \caption{Segundo método de entropía de Shannon, mapa de corrimiento de Bernoulli}
  \label{4t6}
\end{table}

\end{document}
By not using \setlength\RaggedRightParindent{0.5in} the output file has no problems with the margins.

Thanks for reading! :)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Problem with table location when margins has been modified

Post by cgnieder »

I see no problem with the combination:

Code: Select all

\documentclass[12pt,openany]{report}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[showframe,margin=1in]{geometry}

\usepackage{parskip}
\usepackage[document]{ragged2e}
\setlength\RaggedRightParindent{0.5in}

\usepackage{lipsum}

\begin{document}

\lipsum

\end{document}
test.png
test.png (59.24 KiB) Viewed 4513 times
Regards
site moderator & package author
Post Reply