word分左右两栏栏内容不跨栏,不分页

latex两栏排版时如何插入跨栏的表格或图形
表格横跨两栏代码
\begin{table*}
\end{table*}
图形横跨两栏代码
\begin{figure*}
\end{figure*}
我的例子:
\begin{table*}
\renewcommand{\arraystretch}{1.3}
\caption{Simple table}
\label{tab:example}
\centering
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}
& % after \\: \hline or
\cline{col1-col2} \cline{col3-col4} ...
& Scheme & CSP comp.
& Client Comp. & Comm. & Frag. & Privacy &
modify & insert & delete & Prob. of
Detection\\
& PDP\cite{AteniesePDP2007}
& $O(t)$ & $O(t)$ & $O(1)$ & &
&& $\surd$ & & &
& & & & $1-(1-\rho)^{t}$
SPDP\cite{ateniese2008scalable} & $O(t)$ & $O(t)$ &
$O(t)$ & $\surd$ & $\surd$ & $\surd^{\sharp}$ &
&& $\surd^{\sharp}$ & $1-(1-\rho)^{t\cdot
DPDP-I\cite{erway2009dynamic} & $O(tlog n)$ & $O(tlog n)$
& $O(tlog n)$ & & & $\surd$ &
$\surd$ & $\surd$ & $\surd$ & $1-(1-\rho)^{t}$
DPDP-II\cite{erway2009dynamic} & $O(t log n)$ & $O(tlog n)$
& $O(tlog n)$ & &&
&& $\surd$ & $\surd$ & $\surd$ &
$1-(1-\rho)^{\Omega(n)}$ \\
CPOR-I\cite{shacham2008compact} & $O(t)$ & $O(t)$ &
$O(1)$ & && &&
&$1-(1-\rho)^{t}$\\
CPOR-II\cite{shacham2008compact} & $O(t+s)$ & $O(t+s)$
& $O(s)$ & $\surd$ & &&
&& $1-(1-\rho)^{t\cdot s}$
& Our Scheme3 & $O(t+s)$
& $O(t+s)$ & $O(s)$ & $\surd$ & $\surd$ &
$\surd$ & $\surd$ & $\surd$ & $1-(1-\rho)^{t\cdot s}$
\end{tabular}
\end{table*}
参考网址:http://www.52souji.net/figure-or-table-stretch-over-two-columns-in-latex/
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。一、分页栏
创建一个新的项目,Subclass of的值选中UIViewController,然后在storyboard中删除根视图,在右下方拖出一个Tab Bar Controller
新增分页,只需从右下方拖出一个普通的View Controller,按住鼠标右键从分页栏控制器拖动到新视图控制器上释放,在弹出面板中的Relationship Segue标题下选中view controllers,使用这些分页要给他们创建Cocoa Touch Class 并关联。
设置分页栏底部的标题与图标,如图:
二、选取器
选取器分为Date Picker和Picker View,前者是日期选取器,后者为一般选取器,可以任意定制用途。
(一)下面实现一个功能:点击按钮,弹出一个警告视图显示当前在日期选取器中选定的日期和时间
1)往Date分页上拖出一个Date Picker和一个按钮,并设置约束
2)创建日期选取器的输出接口,选中Date Picker,按住右键拖动到实现文件,创建一个名为datePicker的输出接口,如图:
3)加载此视图时,选取器都会重置为当前的日期和时间的实现代码,在viewDidLoad方法中编写,如图:
4)实现功能的操作方法,选中按钮,按住右键拖动到实现文件下方,创建一个名为buttonPressed的操作方法,并编写代码,如图:
5)实现效果,显示的是格林威治标准时间
(二)自定义的选取器视图的实现,下面记录几个要点,与上面相同的步骤就不说了
1)将控制器实现为数据源和委托,关联dateSource和delegate,如图:
2)在.h文件中添加协议
3)创建一个数组,用于向选取器提供数据,并将其赋给characterNames属性,代码如下:
4)按钮的方法和数据源、委托的方法实现,结合上下图
5)实现效果
(三) 实现多滚轮选取器
1)添加委托与数据源协议,与上面相同。
&UIPickerViewDelegate,UIPickerViewDataSource&
2)定义两个选取器滚轮相应的索引值常量,以及相应的两个数组
3)其他方法的实现跟一个选取器差不多,这里只是多了一个判断使用哪个滚轮,代码如下:
@implementation DoubleComponentPickerViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
// 初始化滚轮的内容
self.fillingTypes = @[@"Ham",
@"Turkey",
@"Peanut Butter",
@"Tuna Salad",
@"Chicken Salad",
@"Roast Beef",
@"Vegemite"];
self.breadTypes = @[@"White",
@"Whole Wheat",
@"Rye",@"Sourdough",
@"Seven Grain"];
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
- (IBAction)buttonPressed:(id)sender {
NSInteger fillingRow = [self.doublePicker selectedRowInComponent:kFillingComponent];
NSInteger breadRow = [self.doublePicker selectedRowInComponent:kBreadComponent];
NSString *filling = self.fillingTypes[fillingRow];
NSString *bread = self.breadTypes[breadRow];
NSString *message = [[NSString alloc] initWithFormat:@"Your %@ on %@ bread will be right up.",filling,bread];
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Thank you for your order" message:message preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *action = [UIAlertAction actionWithTitle:@"Great!" style:UIAlertActionStyleDefault handler:nil];
[alert addAction:action];
[self presentViewController:alert animated:YES completion:nil];
#pragma mark Picker Data Soure Methods
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
// 滚轮数目2个
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
if (component == kBreadComponent) {
return [self.breadTypes count];
return [self.fillingTypes count];
#pragma mark Picker Delegate Methods
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
if (component == kBreadComponent) {
return self.breadTypes[row];
return self.fillingTypes[row];
4)运行效果
(四)实现有依赖关系的选取器,即其中的内容变化会引起另一个中的内容变化
由于步骤大同小异,这里只po代码了。。。
DependentComponentPickerViewController.m
Created by
Jierism on 16/7/19.
Copyright & 2016年
Jierism. All rights reserved.
#import "DependentComponentPickerViewController.h"
#define kStateComponent 0
#define kZipComponent 1
@interface DependentComponentPickerViewController ()
@property (weak, nonatomic) IBOutlet UIPickerView *dependentP
@property (strong,nonatomic) NSDictionary *stateZ
@property (strong,nonatomic) NSArray *
@property (strong,nonatomic) NSArray *
@implementation DependentComponentPickerViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
NSBundle *bundle = [NSBundle mainBundle];
NSURL *plistURL = [bundle URLForResource:@"statedictionary" withExtension:@"plist"];
self.stateZips = [NSDictionary dictionaryWithContentsOfURL:plistURL];
NSArray *allStates = [self.stateZips allKeys];
NSArray *sortedStates = [allStates sortedArrayUsingSelector:@selector(compare:)];
self.states = sortedS
NSString *selectedState = self.states[0];
self.zips = self.stateZips[selectedState];
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
- (IBAction)buttonPressed:(id)sender {
NSInteger stateRow = [self.dependentPicker selectedRowInComponent:kStateComponent];
NSInteger zipRow = [self.dependentPicker selectedRowInComponent:kZipComponent];
NSString *state = self.states[stateRow];
NSString *zip = self.states[zipRow];
NSString *title = [[NSString alloc] initWithFormat:@"You selected zip code %@.",zip];
NSString *message = [[NSString alloc] initWithFormat:@"%@ is in %@",zip,state];
UIAlertController *alert = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *action = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil];
[alert addAction:action];
[self presentViewController:alert animated:YES completion:nil];
#pragma mark Picker Data Source Methods
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
if (component == kStateComponent) {
return [self.states count];
return [self.zips count];
#pragma mark Picker Delegate Methods
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
if (component == kStateComponent) {
return self.states[row];
return self.zips[row];
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
if (component == kStateComponent) {
NSString *selectedState = self.states[row];
self.zips = self.stateZips[selectedState];
[self.dependentPicker reloadComponent:kZipComponent];
[self.dependentPicker selectRow:0 inComponent:kZipComponent animated:YES];
// 调整选取器占用的宽度
- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component
CGFloat pickerWidth = pickerView.bounds.size.
if (component == kZipComponent) {
return pickerWidth/3;
return 2*pickerWidth/3;
注意这里加入了一个.plist文件,涉及到包的使用。什么是包?
包(bundle )是一种特定类型的文件夹,其中的内容遵循特定的结构。应用程序和框架都是包,这个调用返回的包对象表示我们的应用程序。
(五)用选取器实现的滚轮小游戏
相同的内容也不说了,详见代码
1)接口的声明,这里还添加了游戏声音
2)往选取器里面加载图片
3)实现点击按钮,选取器开始滚动,并在滚动过程中隐藏按钮
- (void)showButton {
self.button.hidden = NO;
- (IBAction)spin:(id)sender {
BOOL win = NO;
int numInRow = 1;
int lastVal = -1;
for (int i = 0; i & 5 ; i++) {
int newValue = arc4random_uniform((uint)[self.images count]);
if (newValue == lastVal) {
numInRow++;
numInRow = 1;
lastVal = newV
[self.picker selectRow:newValue inComponent:i animated:YES];
[self.picker reloadComponent:i];
if (numInRow &= 3) {
win = YES;
if (_crunchSoundID == 0) {
NSString *path = [[NSBundle mainBundle] pathForResource:@"crunch" ofType:@"wav"];
NSURL *soundURL = [NSURL fileURLWithPath:path];
AudioServicesCreateSystemSoundID((__bridge CFURLRef)soundURL, &_crunchSoundID);
AudioServicesPlaySystemSound(_crunchSoundID);
if (win) {
[self performSelector:@selector(playWinSound) withObject:nil afterDelay:0.5];
[self performSelector:@selector(showButton) withObject:nil afterDelay:0.5];
// 隐藏按钮
self.button.hidden = YES;
self.winLabel.text = @" ";
4)播放声音的方法,点击按钮和获胜时会被调用,播放相应的音乐
5)数据源协议和委托的方法
6)运行效果
阅读(...) 评论()您所在位置: &
&nbsp&&nbsp&nbsp&&nbsp
学位论文中用到的word长篇文档排版技巧.doc222页
本文档一共被下载:
次 ,您可全文免费在线阅读后下载本文档。
文档加载中...广告还剩秒
需要金币:40 &&
你可能关注的文档:
第1章 Word长篇文档排版技巧 8
单面打印的简单报告 8
设置纸张和文档网格 8
设置样式 9
查看和修改文章的层次结构 14
对文章的不同部分分节 15
为不同的节添加不同的页眉 17
在指定位置添加页码 18
插入目录 20
格式化文档技巧 22
格式化字符技巧 22
随意地选择字号 22
选择字形效果 23
调整字符的宽与高 24
调整字符的间距 25
更改英文大小写字母 25
(1)快捷键Ctrl+Shift+K:设置为小型大写字母,如,ActiveWindow 26
设置文档的度量单位 26
格式化段落技巧 27
让段落首行缩进 27
设置首字下沉 28
页面垂直对齐方式 29
设置文本对齐方式 30
控制段落的自动分页 30
给段落硬分页 32
取消后台重新分页功能 33
控制字符的断行 34
设置制表位技巧 34
设置制表位的对齐方式 34
设置制表位前导符 35
手动给目录添加制表符 36
快速格式化文档的技巧 36
中文版式设置技巧 37
给汉语加注拼音 37
创建带圈字符 38
双行合一 39
汉字简繁体转换 40
版式设置技巧 41
版式设置技巧 41
利用【页面设置】对话框设置页边距 41
使用鼠标设置页边距 42
显示绘图网格 42
在文档中使用行号 44
添加“艺术”页面边框 45
设置文档的默认版式 46
更改部分文档的页边距 46
设置大页面文档 46
按照发排单设置版心 47
分栏技巧 50
创建版面的分栏 50
制作跨栏标题 52
平衡各栏文字长度 53
快速更改分栏的宽度 54
为目录分栏 54
为分栏的版面插入页码 56
分节技巧 58
文档中节的
正在加载中,请稍后...

我要回帖

更多关于 word怎么分成左右两栏 的文章

 

随机推荐