Independent Columns Environment

Course Queries Syllabus Queries 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago


I am creating a two-page syllabus with a tikz calendar in the left column and all of the content on the right side of the page. Currently the right content is just like a normal article class document with the left margin adjusted by the geometry package to avoid overlapping the absolutely positioned tikz calendar.

Question: Is there any way in (Xe)Latex to put the two columns into environments, such that whatever I put in on the left column is completely independent from the right and vice versa, which would effectively lock the tikz pictures to pages, ignoring the right side content.

My Goal: A master document for all of my syllabi, where the right side content is simply an \input{thecontent}. The left side will be a tikz calendar (one on the first page, one on page 2)

Problem: I have a master document, but if the right column content (the \input{content}) is a shorter document or more likely a longer document, I have to keep moving the tikzpicture environment around in order to get the calendars on the left side of the page. Text seems to push them to the next page.

NOTE: Currently, the tikzpicture environments are positioned absolutely on the page.

--------------->

\documentclass[10pt]{article}
\usepackage{fontspec}

%CUSTOM VARIABLES
\newcommand{\content}{./"Winter2012/Listening and Speaking 1/Listening_and_Speaking_1_Syllabus"}
%UNUSED COMMANDS, BUT PERHAPS USEFUL LATER
\newcommand{\institution}{Universität Innsbruck}
\newcommand{\department}{Institut der Anglistik}
\newcommand{\class}{Listening \& Speaking I}
\newcommand{\designation}{SL/2}
\newcommand{\ECTS}{ECTS: 2.5}
\newcommand{\hours}{[W 10.00-12.00]}
\newcommand{\office}{}

%SET MARGINS (AND PAGE DIMENSIONS)
\usepackage[top=2.8cm,bottom=2cm,left=7cm,right=2cm,head=30pt]{geometry}

\usepackage{wrapfig}

%USE THISPAGESTYLE{EMPTY} BELOW MAKETITLE OR {FANCY}
\usepackage{tikz}
\usetikzlibrary{shapes,calendar,mindmap,patterns}
\usepackage{everypage} % put something on every page

%HEADER FOOTER
\usepackage{fancyhdr}
\lhead{} \chead{\textsc{}} \rhead{\textsc{{\Huge\class}\\\institution} }
\lfoot{\textsc{J. Komar}} \cfoot{\textsc{}} \rfoot{\textsc{\today}}
\renewcommand{\headrulewidth}{0.0pt} 
\renewcommand{\footrulewidth}{0.0pt}
%\renewcommand{\headersep}{5cm}
\pagestyle{fancy}%ADD HEADER FOOTER TO PAGE EXCEPT TITLE PAGE
%USE THISPAGESTYLE{EMPTY} BELOW MAKETITLE OR {FANCY}
\usepackage{lipsum}%To generate test text, use \lipsum[#NUMOFLINES#] in body

%\newcommand\event[2]{\ifdate{equals=#1} {\node [anchor=north west, text width=3.5cm,event]{#2}; 
\newcommand\event[2]{
    \ifdate{equals=#1} {
% In the following, the event nodes are defined
% The \rule in the node text is necessary to match the "text depth=0.5ex" of the date nodes
        \node [yshift=6pt,xshift=5pt,anchor=west,text height=1.5ex, text width=3.5cm,event]{#2}; 
    }{}
}

\newcommand\redevents{
    \tikzstyle{event}=[black,fill=red!10]
    %\event{2012-10-31}{This is a very long event text running over three lines.}
    %\event{2012-11-07}{Short event!}
    %\event{2012-11-14}{Third of the longish events\ldots}
}

\usepackage{enumitem}

                                                
                                                
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.