TAILIEUCHUNG - The Not So Short phần 10

Tham khảo tài liệu 'the not so short phần 10', công nghệ thông tin, quản trị mạng phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 120 Customising ỊATgX The first command assigns a fixed value to any of the parameters setlength parameter length The second command adds a length to any of the parameters addtolength parameter length This second command is actually more useful than the setlength command because you can now work relative to the existing settings. To add one centimetre to the overall text width I put the following commands into the document preamble addtolength hoffset addtolength textwidth 1cm In this context you might want to look at the calc package. It allows you to use arithmetic operations in the argument of setlength and other places where you can enter numeric values into function arguments. More Fun With Lengths Whenever possible I avoid using absolute lengths in LATeX documents. I rather try to base things on the width or height of other page elements. For the width of a figure this could be textwidth in order to make it fill the page. The following 3 commands allow you to determine the width height and depth of a text string. settoheight variable text settodepth variable text settowidth variable text The example below shows a possible application of these commands. Boxes 121 flushleft newenvironment vardesc 1 settowidth parindent 1 makebox 0pt r 1 begin displaymath a 2 b 2 c 2 end displaymath begin vardesc Where a b are adjoin to the right angle of a right-angled triangle. c is the hypotenuse of the triangle and feels lonely. d finally does not show up here at all. Isn t that puzzling end vardesc a2 b2 c2 Where a b - are adjoin to the right angle of a right-angled triangle. c - is the hypotenuse of the triangle and feels lonely. d - finally does not show up here at all. Isn t that puzzling Boxes LTEX builds up its pages by pushing around boxes. At first each letter is a little box which is then glued to other letters to form words. These are again glued to other words but with special glue which is elastic so that a series of words can be squeezed or .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.